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

前端之家收集整理的这篇文章主要介绍了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.f2er.com/ubuntu/347545.html

猜你在找的Ubuntu相关文章