when sending email from my Ubuntu 18.04 server to Gmail, I am getting such bounce messages:
... while talking to gmail-smtp-in.l.google.com.:
>>> DATA
<<< 550-5.7.1 This message does not have authentication information or fails to pass
<<< 550-5.7.1 authentication checks. To best protect our users from spam, the
<<< 550-5.7.1 message has been blocked. Please visit
<<< 550-5.7.1 https://support.google.com/mail/answer/81126#authentication for more
<<< 550 5.7.1 information. z8si6596816wro.217 - gsmtp
554 5.0.0 Service unavailable
I have checked the provided link and wonder, what setting is missing:
- "Send from the same IP address"
- I do (changed IP once 3 months ago, though).
- "Keep valid reverse DNS records your IP address that point to your domain".
- I think I do. There's both a DNS and PTR record referring both ways
nabo.jaehnig.org
<=>159.69.180.128
- I think I do. There's both a DNS and PTR record referring both ways
- "Choose the same address in the 'From:' header for every bulk message"
- I do (I even don't send bulk messages, only single ones.)
There are "Other recommendations"
- "Publish a SPF record."
- I did. It says
v=spf1 include:_spf.google.com ~all
- I did. It says
- "Publish a DMARC policy."
- I did. It says
v=DMARC1; p=none; rua=mailto:postmaster@jaehnig.org
- I did. It says
- "Sign messages with DKIM. We don't authenticate messages signed with keys that use fewer than 1024 bits."
- I'm not doing this yet. Is it really crucial? I know another server also having no DKIM, and Gmail receives its messages.
Also, looking at the checks provided by toolbox.googleapps.com, there are no critical issues (but interestingly, DMARC is not recognized).
What would you try next?