将服务器从Ubuntu 10.04升级到12.04后,postfix不再通过sendgrid.com发送电子邮件.大约6个月前我跟踪了
this guide,在升级之前一切都很顺利.现在它似乎没有使用sendgrid进行身份验证.
原文链接:https://www.f2er.com/ubuntu/347545.htmlMay 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
任何帮助将不胜感激.我很乐意发布任何其他日志或其他相关信息.