我使用手动安装设置了我的Virtualmin,因为我使用的是Ubuntu 3.14并且自动安装不支持此版本。
因为现在我有问题。一切都有效,除了Postfix。
这是我的postconf -n:
ubuntu@web01:~$ postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
mailbox_size_limit = 0
mydestination = web01.redacted.net, localhost, localhost.localdomain, localhost
myhostname = web01.redacted.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_inet_interfaces
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_maps = hash:/etc/postfix/virtual
我在mail.log中收到的错误是:
Mar 22 08:17:49 web01 postfix/smtpd[27725]: connect from nk11p04mm-asmtpout002.mac.com[17.158.236.237]
Mar 22 08:17:50 web01 postfix/smtpd[27725]: 3ADDE65113: client=nk11p04mm-asmtpout002.mac.com[17.158.236.237]
Mar 22 08:17:50 web01 postfix/cleanup[27729]: 3ADDE65113: message-id=<4FD40961-2187-4B2C-8892-8A7A3BADD07E@icloud.com>
Mar 22 08:17:50 web01 postfix/qmgr[1263]: 3ADDE65113: from=<redacted@icloud.com>, size=1941, nrcpt=1 (queue active)
Mar 22 08:17:50 web01 postfix/error[27730]: 3ADDE65113: to=<redactedName@redacted.co>, orig_to=<hostmaster@redacted.co>, relay=none, delay=0.23, delays=0.2/0.01/0/0.02, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Mar 22 08:17:50 web01 postfix/cleanup[27729]: 7083565115: message-id=<20140322081750.7083565115@web01.redacted.net>
这是/ etc / postfix / virtual:
redacted.co redacted.co
hostmaster@redacted.co redactedName@redacted.co
这是/ etc / aliases:
# See man 5 aliases for format
postmaster: root
答案 0 :(得分:0)
问题是找不到我们案例redactedName
中的初始用户。为解决此问题,用户按以下方式手动添加:
redacted.co redacted.co
hostmaster@redacted.co redactedName@redacted.co
redactedName@redacted.co redactedName
这解决了问题。
我希望其他人觉得这很有用。它花了很多调试并查看日志,最终了解错误消息告诉我的实际上是错误本身。基本上redactedName@redacted.co
没有被重定向到任何用户。