mic*_*mic 5 email virtualization postfix
首先 - 我仍然处于初学者水平。正如主题所说,我在 Debian Jessie 上的邮件服务器(后缀 2.11.3)有问题。这是一个有两个域的 VPS,每个域都有自己的 IP。
当我今年年初设置 postfix 时 - 一切似乎都很好 - 但现在我收到越来越多的报告,说我的标题与发件人域不同。
我已经在另一个线程上询问过这个问题,但是我在寻找错误的方法,为了清楚起见,我打开了第二个线程。
我的问题:
我认为与地址重写不匹配,因为在调试 SMTP 时,我在 mail.log 中得到了这个:
/smtpd[16553]: > cli[91.xxx.xxx.11]: 235 2.7.0 Authentication successful
/smtpd[16553]: < cli[91.xxx.xxx.11]: MAIL FROM:<info@tiw.com> BODY=8BITMIME SIZE=398
/smtpd[16553]: extract_addr: input: <info@tiw.com>
/smtpd[16553]: smtpd_check_addr: addr=info@tiw.com
/smtpd[16553]: connect to subsystem private/rewrite
/smtpd[16553]: send attr request = rewrite
/smtpd[16553]: send attr rule = local
/smtpd[16553]: send attr address = info@tiw.com
/smtpd[16553]: private/rewrite socket: wanted attribute: flags
/smtpd[16553]: input attribute name: flags
/smtpd[16553]: input attribute value: 0
/smtpd[16553]: private/rewrite socket: wanted attribute: address
/smtpd[16553]: input attribute name: address
/smtpd[16553]: input attribute value: info@tiw.com
/smtpd[16553]: private/rewrite socket: wanted attribute: (list terminator)
/smtpd[16553]: input attribute name: (end)
/smtpd[16553]: rewrite_clnt: local: info@tiw.com -> info@tiw.com
/smtpd[16553]: send attr request = resolve
/smtpd[16553]: send attr sender =
/smtpd[16553]: send attr address = info@tiw.com
/smtpd[16553]: private/rewrite socket: wanted attribute: flags
/smtpd[16553]: input attribute name: flags
/smtpd[16553]: input attribute value: 0
/smtpd[16553]: private/rewrite socket: wanted attribute: transport
/smtpd[16553]: input attribute name: transport
/smtpd[16553]: input attribute value: error
/smtpd[16553]: private/rewrite socket: wanted attribute: nexthop
/smtpd[16553]: input attribute name: nexthop
/smtpd[16553]: input attribute value: 5.1.1 User unknown in virtual alias table
/smtpd[16553]: private/rewrite socket: wanted attribute: recipient
/smtpd[16553]: input attribute name: recipient
/smtpd[16553]: input attribute value: info@tiw.com
/smtpd[16553]: private/rewrite socket: wanted attribute: flags
/smtpd[16553]: input attribute name: flags
/smtpd[16553]: input attribute value: 512
/smtpd[16553]: private/rewrite socket: wanted attribute: (list terminator)
/smtpd[16553]: input attribute name: (end)
/smtpd[16553]: resolve_clnt: `' -> `info@tiw.com' -> transp=`error' host=`5.1.1 User unknown in virtual alias table' rcpt=`info@tiw.com' flags= class=alias
/smtpd[16553]: ctable_locate: install entry key info@tiw.com
/smtpd[16553]: extract_addr: in: <info@tiw.com>, result: info@tiw.com
/smtpd[16553]: send attr request = rewrite
/smtpd[16553]: send attr rule = local
/smtpd[16553]: send attr address = double-bounce
/smtpd[16553]: private/rewrite socket: wanted attribute: flags
/smtpd[16553]: input attribute name: flags
/smtpd[16553]: input attribute value: 0
/smtpd[16553]: private/rewrite socket: wanted attribute: address
/smtpd[16553]: input attribute name: address
/smtpd[16553]: input attribute value: double-bounce@server1.tiw.com
/smtpd[16553]: private/rewrite socket: wanted attribute: (list terminator)
/smtpd[16553]: input attribute name: (end)
/smtpd[16553]: rewrite_clnt: local: double-bounce -> double-bounce@server1.tiw.com
/smtpd[16553]: smtpd_check_rewrite: trying: permit_inet_interfaces
/smtpd[16553]: permit_inet_interfaces: cli 91.xxx.xxx.11
Run Code Online (Sandbox Code Playgroud)
我有这个用户的 /etc/postfix/virtual 文件:
info@tiw.com info.tiw
Run Code Online (Sandbox Code Playgroud)
我可以使用 info.tiw 在 Thunderbird 中登录,但是我如何阅读调试日志 .. 他试图将 info@tiw.com 重写为 info@tiw.com。系统上没有 info@tiw.com 用户(用户是 info.tiw),因此它会反弹或双重反弹(不确定这是做什么 - 似乎通过一种基本地址发送)它和邮件出去。
这发生在两个域上(只发布了一个日志)。
我很抱歉在这里问..但我今天一整天都在尝试找出发生了什么以及发生了什么 - 最后我发现了“5.1.1用户不在虚拟别名表中”的问题,但我真的不知道如何来解决这个问题。
拜托,我需要一些帮助。
postconf -n(以示例 conf 重新启动)
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = localhost, localhost.localdomain
mynetworks = 127.0.0.0/8
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virtual_alias_domains = tiw.com dnoe.com
virtual_alias_maps = hash:/etc/postfix/virtual
Run Code Online (Sandbox Code Playgroud)