On these boxes, postfix only serves as local mail server (just to send mail from the local system).
One of them obeys .forward file for root account while the other doesn't. Both .forward files are identical (with the same destination).
.forward file permissions are the same, selinux is disabled. I have tried re-creating the .forward file, restarting postfix but nothing works.
Here is a sample session (changed real domain to example.com) when sending a test mail using local telnet:
Oct 13 11:54:25 vpnspot postfix/smtpd[10632]: connect from vpnspot[::1]Oct 13 11:54:50 vpnspot postfix/smtpd[10632]: AB992C0B14: client=vpnspot[::1] Oct 13 11:55:01 vpnspot postfix/cleanup[10635]: AB992C0B14: message-id=<20111013085450.ab992c0...@vpnspot.example.com> Oct 13 11:55:01 vpnspot postfix/qmgr[10229]: AB992C0B14: from=<n...@vpnspot.example.com>, size=337, nrcpt=1 (queue active) Oct 13 11:55:01 vpnspot postfix/local[10636]: AB992C0B14: to=<r...@vpnspot.example.com>, orig_to=<root>, relay=local, delay=18, delays=18/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 13 11:55:01 vpnspot postfix/qmgr[10229]: AB992C0B14: removed Oct 13 11:55:04 vpnspot postfix/smtpd[10632]: disconnect from vpnspot[::1] # ls -la /root/.forward -rw-r--r--. 1 root root 16 Oct 13 11:30 /root/.forward # cat /root/.forward sysad...@example.com(I've also verified that the MX server for example.com is accessible and that name resolution works fine, but it seems that local postfix is not trying at all to forward the mail message(s) to sysad...@example.com.)
I've spent quite some time but I have found no solution.We have more than a dozen CentOS 5.6 servers (running various postfix versions) and only these two are CentOS 6. I haven't faced this problem again.
Any ideas? postconf -n on both these boxes: # postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix 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 unknown_local_recipient_reject_code = 550 Thanks in advance, Nick
smime.p7s
Description: S/MIME Cryptographic Signature