I run a Postfix server which forwards one address to a gmail address.
# /etc/aliases
localuser: remoteuser@googlemail.com
This works since several months. But if a sender has a SPF record with a hard fail, then the forwarding does not work:
gmail-smtp-in.l.google.com[ said: 550-5.7.26 The
MAIL FROM domain [example.com] has an SPF record with a hard fail 550-5.7.26
policy (-all) but it fails to pass SPF checks with the ip: 550-5.7.26
[...]. To best protect our users from spam and 550-5.7.26
phishing, the message has been blocked. Please visit 550-5.7.26
https://support.google.com/mail/answer/81126#authentication for more 550
5.7.26 information. -
gsmtp (in reply to end of DATA command)
How can I fix this?