question about configure MX

Discussion in 'Installation/Configuration' started by Poliman, Jun 4, 2018.

  1. Poliman

    Poliman Member

    Hi, could you point me right direction in my problem? I have domain poliman.net on one server. In this domain dns zone I have created A record matching s1 with ip of another server. This "another server" has few domains and mail domains. Each of them has own dns zone and own mailserver, i.e. mail.derm-in.pl, mail.lcprinting.eu. I would like to configure s1.poliman.net as the MX for all of these domains. I suppose that I should only change MX record for each domain. Am I right?
    But there is a problem with s1.poliman.net as mail domain. I have [email protected] mailbox with s1.poliman.net as pop3/imap and smtp servers but I can only send emails from this mailbox, I can't receive - user who send email on this mailbox get bounced with information that this mailbox doesn't exists - here is the screen https://nofile.io/f/nKJhTrctwGb/fail+delivery.png. It looks like disabling receiving in ISP but it doesn't. I attach link to screen - https://nofile.io/f/Gupc45qP7cg/mailbox+settings.png. In poliman.net dns zone is mail.poliman.net MX record but if I would configure it instead of s1.poliman.net as pop3/imap/smtp for [email protected] mailbox then I can't receive and send emails, so it's not right mailserver, which is obvious.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Yes. Add MX record s1.poliman.net to all those domains for which you want that mail server to receive the emails.
    I did not understand other parts of the message.
     
    ahrasis likes this.
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Trying to understand the message:
    Code:
    $ host poliman.net
    poliman.net has address 91.228.199.85
    poliman.net mail is handled by 10 mail.poliman.net.
    [email protected] ~
    $ host s1.poliman.net
    s1.poliman.net has address 54.38.202.128
    [email protected] ~
    $
    
    Mail to @s1.poliman.net goes to mail.poliman.net, not to s1.poliman.net. That maybe explains why do_not_reply is unknown mailbox.​
     
    ahrasis likes this.
  4. Poliman

    Poliman Member

    I try better explain what is and what I would like to reach:
    1. Domain poliman.net is on server with IP 91.228.199.85.
    2. In poliman.net dns zone is:
    Code:
    mail    A    91.228.199.85
    poliman.net.    MX    10 mail
    s1    A    54.38.202.128
    
    3. On the server (fqdn s1.poliman.net) with IP 54.38.202.128 is also mailserver - postfix/dovecot. There is also installed ISP with Lets Encrypt cert, which is related with main/login page of ISP.
    5. Under ISP panel I have created [email protected] mailbox. I can only send mails - receiving does not work. I think you have right in this:
    6. My goal is provide for each domain hosted on server s1.poliman.net some MX record which will be common on whole server. I thought it would be s1.poliman.net, because domain s1.poliman.net has LE cert and there is mailserver which use postfix/dovecot as I mentioned in 3rd point. Generally speaking I want to my new server - s1.poliman.net - would carry the mail service. :)
    Is it the remedy? ;)
    7. Soon domain poliman.net will be moved to the server s1.poliman.net.
     
    Last edited: Jun 4, 2018
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    6.
    Yes
     
    Poliman and ahrasis like this.
  6. Poliman

    Poliman Member

    I like simple answers.
     
  7. Poliman

    Poliman Member

    One more question. Currently in dns zone (in ISP) I have lines:
    Code:
    Yes     A     mail     54.38.202.128     0     3600    
    Yes     MX     villaincognito.pl.     mail.villaincognito.pl.     10     3600
    
    Should it be changed to (delete A record for mail and change MX) ? :
    Code:
    Yes     MX     villaincognito.pl.     s1.poliman.net.     10     3600
    
     
    Last edited: Jun 6, 2018
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The provided snippet does not show what is the ORIGIN, so I do not know what hostname mail refers to. I mean, what is the FQDN. Anyway I do not know whether you need that A record or not, so can not help here. You should ask simpler questions.
     
  9. Poliman

    Poliman Member

    Of course s1.poliman.net is fqdn of the server, which I want use as MX for each domain.
    I can send you whole dns zone on PM if it could help.
     
    Last edited: Jun 7, 2018
  10. Poliman

    Poliman Member

    Does anybody know what to do in point where I am after last Taleman answer?

    PS
    I am going to migrate dns zone of poliman.net to s1.poliman.net server. After this I could set in dns zone the s1.poliman.net as MX for this domain and then I could set s1.poliman.net as MX for each domain deployed on the server. Then mailing receiving/sending will work. Am I right?
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What does the above mean?
    If the above results in s1.poliman.net being the MX record for all those zones where you want the mail to be received at s1.poliman.net, then yes. Like I wrote in message #2.
    But sending mail must also be set up, SPF record for example and maybe DKIM.
     
  12. Poliman

    Poliman Member

    Domain poliman.net is on another server. I have also second server which fqdn is s1.poliman.net (added A record s1 in poliman.net dns zone).
    What does it mean? On the server s1.poliman.net work postfix/dovecot.

    Btw - there is no matter on which server domain poliman.net is deployed but only setting up s1.poliman.net as MX in each domain dns zone?
     

Share This Page