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

Sat Sep 23 07:15:19 UTC 2006
David Hrbáč <hrbac.conf at seznam.cz>

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?

I guess you should also really perform name resolution on both machines,
as mentioned in one reply. I think that you should also correct
transport_maps vs virtual_transport, both use the same sql statements,
aka gets the very same values... I guess that's the issue.

We use slightly different config:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8, 193.165.161.232/29, 194.212.173.165
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
relay_domains = mysql:/etc/postfix/mysql_virtual_transport_maps.cf
sample_directory = /usr/share/doc/postfix-2.2.10/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
transport_maps = mysql:/etc/postfix/mysql_virtual_transport_maps.cf
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /pudu/mails
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 1001
virtual_transport = virtual
virtual_uid_maps = static:1001

Regards,
David