这是我做的:
虚拟文件的示例
[email protected] [email protected] [email protected] [email protected]
这是我没有做的事(我不这么做),我想:
这是postconf -n的内容
root@Host-Wordpress-01:~# postconf -n alias_database = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix home_mailbox = mail/ inet_interfaces = all inet_protocols = all mailbox_size_limit = 0 mydestination = example.com, Host-Wordpress-01, localhost.localdomain, localhost myhostname = example.com mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes virtual_alias_domains = example.com virtual_alias_maps = hash:/etc/postfix/virtual
我不明白为什么,但我有一个电子邮件地址可以邮寄给myselve(转发=发件人邮件)。 所有其他情况都不起作用。
例如,当我的虚拟文件包含:
[email protected] [email protected]
当我从[email protected]邮件到[email protected],然后它进入[email protected]的收件箱…奇怪:s
后缀队列中没有电子邮件
我已经通过serverfaultsearchfind相关的问题,我还没有find任何解决我的问题…
我想解决这个问题,但一个替代的后缀(如果简单)也被接受..(虽然没有find任何)
将example.com从mydestination移除,因为邮件通过$local_transport邮件传递传输传递到该列表中的域。 这是如此常见的错误,它是分别在参数mydestination的 Postfix main.cf文件格式文档中警告:
警告:
不要指定虚拟域的名称 – 这些域在别处指定。 有关更多信息,请参阅VIRTUAL_README 。
你可以按照提到的文件,但AFAIK的configuration似乎是正常的。