Hello Everyone,

I experience a strange problem with our mail system.
Sometimes an user gets a message which should be delivered to another user.
As most messages are delivered properly I can't reproduce that but I have some logs connected with this problem.
Dec  8 20:36:26 serwery postfix/smtpd[2112]: connect from 
mta147.esp4.eu[178.33.185.147]
Dec  8 20:36:27 serwery postfix/smtpd[2112]: 0DFFADE3C8B: 
client=mta147.esp4.eu[178.33.185.147]
Dec  8 20:36:27 serwery postfix/cleanup[27880]: 0DFFADE3C8B: 
message-id=<0.0.a.f4.1cef44d1247f0b...@mta147.esp4.eu>
Dec  8 20:36:27 serwery postfix/smtpd[6007]: connect from 
ut.pl[178.250.45.37]
Dec  8 20:36:27 serwery postfix/smtpd[6007]: 1B54EDE3C90: 
client=ut.pl[178.250.45.37]
Dec  8 20:36:27 serwery postfix/cleanup[28725]: 1B54EDE3C90: 
message-id=<3CCEA7A26F3E4A69BAD8578B55ED7319@m19c68eb1c6704>
Dec  8 20:36:27 serwery postfix/smtpd[6007]: disconnect from 
ut.pl[178.250.45.37]
Dec  8 20:36:27 serwery postfix/qmgr[5555]: 1B54EDE3C90: from=<bi...@ut.pl>, 
size=975, nrcpt=1 (queue active)
Dec  8 20:36:27 serwery postfix/qmgr[5555]: 0DFFADE3C8B: 
from=<28565-59746...@codziennie1prezent.pl>, size=20398, nrcpt=1 (queue 
active)
Dec  8 20:36:27 serwery postfix/smtpd[2112]: disconnect from 
mta147.esp4.eu[178.33.185.147]
Dec  8 20:36:27 serwery postfix/pickup[23435]: 43E18DE3C9A: uid=500 
from=<bi...@ut.pl>
Dec  8 20:36:27 serwery postfix/cleanup[28725]: 43E18DE3C9A: 
message-id=<0.0.a.f4.1cef44d1247f0b...@mta147.esp4.eu>
As you can see there are two connections, one from bi...@ut.pl to user A 
with message-id 3CCEA7A26F3E4A69BAD8578B55ED7319@m19c68eb1c6704 and one from 
28565-59746...@codziennie1prezent.pl to user B with message-id 
0.0.a.f4.1cef44d1247f0b...@mta147.esp4.eu.
Now look at the last two lines - postfix processes the message 
0.0.a.f4.1cef44d1247f0b...@mta147.esp4.eu as it is from bi...@ut.pl instead 
of 28565-59746...@codziennie1prezent.pl and actually delivers the message to 
user A instead of user B.
postconf -n -c /etc/postfix2
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix2
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix2
debug_peer_level = 2
html_directory = no
inet_interfaces = (my ip)
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 20480000
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = (my host)
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix2
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = check_policy_service unix:private/policy, reject_unauth_destination, reject_rbl_client zen.spamhaus.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = /var/spool/postfix2/private/auth
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:500
virtual_mailbox_base = /var/spool/mail/poczta_vmail
virtual_mailbox_domains = (my domains)
virtual_mailbox_maps = mysql:/etc/postfix2/mailboxes.cf
virtual_transport = dovecot
virtual_uid_maps = static:500

We run two postfix instances.
It's postfix 2.6.6 (postfix-2.6.6-2.2.el6_1.x86_64) running on Centos 6.2

Any ideas?
--
Marcin Szymonik
szymoni...@gmail.com

Reply via email to