我试图通过Postfix发送来自Asterisk的通知邮件,让用户知道他们有语音邮件消息,但在postfix日志中显示以下内容:
Feb 15 15:21:02 myserver postfix/local[12751]: BF8E9A18887: to=<[email protected]>, relay=local, delay=0.07, delays=0.05/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "alfred")
我使用ISP的SMTP服务器作为中继,并且已经testing并能够通过使用telnet的SMTP服务器向用户发送消息。
还有什么可以检查,看看这反弹是从哪里来的? 它似乎是后缀,但我不知道下一步该怎么做。
main.cf
queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix myhostname = somewhere3.com inet_interfaces = localhost mydestination = $myhostname, localhost.$mydomain, localhost unknown_local_recipient_reject_code = 550 relayhost = [smtp.myisp.net] alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.3.3/samples readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES #smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd #broken_sasl_auth_clients = yes #smtpd_sasl_auth_enable = no #smtp_always_send_ehlo = yes #smtp_sasl_auth_enable = yes
您发布的后缀日志表示您的邮件服务器不会将您的邮件转发给中继主机,原因很简单,因为收件人的域名与mydestination参数匹配。 如果域是mydestination一部分,那么通过本地程序传递消息,但不会中继,正如您可以在日志中的relay=local看到的那样。 如果您希望发送的每封电子邮件都被中继,请将mydestination字段留空。