微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Postfix在升级到Ubuntu 12.04后没有发送电子邮件

将服务器从Ubuntu 10.04升级到12.04后,postfix不再通过sendgrid.com发送电子邮件.大约6个月前我跟踪了 this guide,在升级之前一切都很顺利.现在它似乎没有使用sendgrid进行身份验证.

当我尝试发送电子邮件时,这是我在系统日志中遇到的错误.

May 22 10:19:55 server postfix/smtp[3844]: 983B11C5DA: to=<to address>,relay=smtp.sendgrid.net[174.36.32.204]:587,delay=0.05,delays=0.01/0/0.04/0,dsn=5.0.0,status=bounced (host smtp.sendgrid.net[174.36.32.204] said: 550 Cannot
receive from specified address <sendgrid username>: Unauthenticated senders not
allowed (in reply to MAIL FROM command))

这是来自postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = no
config_directory = /etc/postfix
header_size_limit = 4096000
inet_interfaces = loopback-only
mailBox_size_limit = 0
mydestination = localhost,mylinode.members.linode.com
myhostname = hostname
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
readme_directory = no
recipient_delimiter = +
relayhost = [smtp.sendgrid.net]:587
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = login
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sendgrid
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
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

任何帮助将不胜感激.我很乐意发布任何其他日志或其他相关信息.

我有类似的错误.我通过评论来修复它:
#default_transport = error
#relay_transport = error

原文地址:https://www.jb51.cc/ubuntu/347545.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐