I am not very good with mail server configuration but I have an aws instance that can send mail to some domains such as mydomain.com. However, when I send to googlemail.com I get the error in the mail.log file:
H=(blerg) [95.144.47.184] F=<me@mydomain.com> rejected RCPT <user@googlemail.com>: relay not permitted
I have added the following into the DNS through Route53 but I am not sure that it quite what the error is referring to:
mydomain.com. SPF "v=spf1 ip4:54.229.217.48"
Does anyone have any pointers? I haven't managed to find out much that is helpful but I have played with Exim4's:
dc_relay_nets
and dpkg-reconfigure exim4
'domains to relay mail for' 'IP addresses to relay mail for' but with no success.