PS: I seem to have solved this issue by adding all my domains to $mydestinations. I still do not understand why virtual_alias_maps seems to be ignored when looking for valid mydestinations.
After updating postfix, it started rejecting emails from external domains to my virtual domains (managed by Virtualmin / Webmin) on the server. My virtual domains in turn just forward these messages to gmail.
Mar 26 13:48:08 CentOS-72-64-minimal postfix/smtpd: connect from nm3-vm8.bullet.mail.gq1.yahoo.com[126.96.36.199] Mar 26 13:48:08 CentOS-72-64-minimal postfix/smtpd: NOQUEUE: reject: RCPT from nm3-vm8.bullet.mail.gq1.yahoo.com[188.8.131.52]: 454 4.7.1 <info@MY-DOMAIN-ON-SERVER.com>: Relay access denied; from=<WHOEVER@yahoo.com> to=<info@MY-DOMAIN-ON-SERVER.com> proto=ESMTP helo=<nm3-vm8.bullet.mail.gq1.yahoo.com> Mar 26 13:48:09 CentOS-72-64-minimal postfix/smtpd: disconnect from nm3-vm8.bullet.mail.gq1.yahoo.com[184.108.40.206]
I understand based on these issues (all related)
- NOQUEUE: reject: RCPT from on freebsd and postfix
- SMTP don't work when try to send mail from mail client
that this error is due to defer_unauth_destination default postfix setting.
However, I have a working virtual_alias_maps, but this map seems to be ignored by postfix as info@MY-DOMAIN-ON-SERVER.com is present in there and is set to forward to email@example.com.
Here is my postconf -n
[root@host ~]# 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 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 html_directory = no inet_protocols = all mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man newaliases_path = /usr/bin/newaliases.postfix readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES sample_directory = /usr/share/doc/postfix-2.10.1/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550 virtual_alias_maps = hash:/etc/postfix/virtual
Would you have any tips what I need to do to get this working?