On a 4.7.11 site, I'm trying to send mails using the smtp relay server of google.
Then in CiviCRM I configured outbound mail settings like this:
- Select mailer: SMTP
- SMTP Server: smtp-relay.gmail.com
- SMTP port: 25
- Authentication? No
When I click the "Save & Send Test Email" button, it works. So the setup of google relay for my account is correct.
Also, when I use activities to send an email, it works.
But when I try to send a test email using CiviMail, I get the error:
Error in call to Mailing_send_test : Failed to set sender: b.25.13.aa68527faac1fed1@EXAMPLE.ORG [SMTP: Invalid response code received from SMTP server while sending email. This is often caused by a misconfiguration in Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP). (code: 550, response: 5.7.0 Mail relay denied [22.214.171.124]. Invalid credentials for relay for one 5.7.0 of the domains in: example.org (as obtained from helo and mail-from). 5.7.0 Email is being sent from a domain or IP address which isn't registered 5.7.0 in Google Apps account. Please login to your Google Apps account and 5.7.0 verify that your sending device IP address has been registered within 5.7.0 Google Apps SMTP Relay Settings. For more information, please visit 5.7.0 support.google.com/a/answer/6140680#maildenied e9sm8480344wjh.2 - gsmtp)]
Which is weird, because the IP address is correct and SMTP authentication is not required in my google settings.
Is CiviMail using other settings than the one defined in the outbound mail settings screen? Or does it use another method to send mails?