Alberto Lepe a écrit :
> Hello!
> 
> I have 2 servers (with external IP each of them) and 1 domain:
> 
>        domain.tld -> A: 100.200.30.1 (Server1-Ubuntu) running a Web Server
> mail.domain.tld -> A: 100.200.30.2 (Server2-Ubuntu) running postfix/dovecot
>                          MX: 10
> 
> All the setup seems to work fine. but when I try to send a mail from
> other server (outside that network) to:
> u...@domain.tld , it is trying to send it to 100.200.30.1, so it never
> connects to port 25 (obviously because
> its looking for @domain.tld and not mail.domain, so it has to be 
> 100.200.30.2).
> 
> One possible solution may be to forward port 25 in Server1 to
> Server2... but I was wondering which is the
> common way to solve this?? Any link or idea of where to look at is welcome :)
> 

you need to setup an MX for "domain.tld", that returns mail.domain.tld

domain.tld      MX 10   mail.domain.tld

MTAs will use the A record of the domain only when no MX is found.

to test this, you can use

host -t mx domain.tld


> I know this may not be so related to postfix, but it is very probable
> that some of you know the answer.
> 
> Thank you in advance!
> 
> Lepe

Reply via email to