大网数据广告活动
服务器运维问答

exim4 issues sending mail to gmail

· 52CE 我爱测

I am trying to send automated emails from my server to my gmail account, so that I can get important notices like when my webserver is not responding, or just some daily statistics. As email sending program I am using exim4 on my…

问题原文

原帖链接 · Jakob Abfalter · CC BY-SA 3.0

I am trying to send automated emails from my server to my gmail account, so that I can get important notices like when my webserver is not responding, or just some daily statistics.

As email sending program I am using exim4 on my debian6 server. Whenever an email is beeing sent I get the following error log in /var/log/exim4/mainlog:

    2016-04-24 12:48:34 1auHac-0000Mr-G3 ** [email omitted] R=dnslookup T=remote_smtp X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=mx.google.com": SMTP error from remote mail server after end of data: host gmail-smtp-in.l.google.com [2a00:1450:400c:c09::1b]: 550-5.7.1 [2a02:c200:1:10:2:6:6291:1] Our system has detected that this message\n550-5.7.1 does not meet IPv6 sending guidelines regarding PTR records and\n550-5.7.1 authentication. Please review\n550-5.7.1  https://support.google.com/mail/?p=ipv6_authentication_error for more\n550 5.7.1 information. sw5si18679304wjc.113 - gsmtp

With the important part beeing

 Our system has detected that this message\n550-5.7.1 does not meet IPv6 sending guidelines regarding PTR records and\n550-5.7.1 authentication.

I reviewed this guidelines and tried to set everything up as required, but something seems to be sill not correct.

What I tried:

First I set up a PTR entry for the IPv6 address on the control panel of my hosting provider:

Since this didn't change anything I tried to force exim to use Ipv4 instead hoping to solve the issue.

In my update-exim4.conf.conf I added my Ip4 address to the dc_smarthost entry and set dc_local_interfaces to dc_local_interfaces='127.0.0.1'

This configuration change didn't help either, and since I don't really know what I am doing I decided to ask this question for further help.

已采纳解答

原帖链接 · BillThor · CC BY-SA 3.0

As you are trying to send the messages to yourself, configure Exim to authenticate with your gmail credentials when sending the messages. This should work for low volumes that are not being forwarded.

Add your credentials to /etc/exim/passwd.client. You should secure this file so that Exim can read it but not general users. I would not recommend this for high volumes of email or for email forwarding to other users.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。