Re: [CentOS] postfix problem since update: mail loops back to myself

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



David Hrbáč wrote:
thorsten napsal(a):
domain1.tld has:
20 server.domain2.tld
10 server.domain1.tld

domain2.tld has:
20 server.domain1.tld
10 server.domain2.tld

on server.domain1.tld we need to have:
domain1.tld within virtual domains or local domain
domain2.tld within transport

on server.domain2.tld we need to have:
domain2.tld within virtual domains or local domain
domain1.tld within transport

So
what does return postmap -q domain2.tld mysql:/etc/postfix/sql/transport
on server.domain1.tld?
what does return postmap -q domain1.tld mysql:/etc/postfix/sql/transport
on server.domain2.tld?


That brings something to mind that I ran up against a while back. In your transport map the destination needs to be enclosed in square brackets. If not, then any MX records for it are used to determine the destination. On server.domain1.tld, the map entry for domain2.tld needs to contain 'smtp:[server.domain2.tld]' instead of 'smtp:server.domain2.tld'. The brackets tell Postfix (and Sendmail, for that matter) NOT to look up the MX records.

Hope that helps!
--
Jay Leafey - Memphis, TN
jay.leafey@xxxxxxxxxxxx

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux