Applicable to:
- Plesk Onyx for Linux
Symptoms
On a Plesk server on Google Cloud, sending email is configured using a G Suite (former Google Apps) accountю
However, messages are bounced by G Suite with the following error:
CONFIG_TEXT: host smtp-relay.gmail.com[74.125.200.28] said: 550-5.7.1 Invalid credentials for relay [203.0.113.2]. The IP address you've registered in your G Suite SMTP Relay service doesn't match domain of the account this email is being sent from. If you are trying to relay mail from a domain that isn't registered under your G Suite account or has empty envelope-from, you must configure your mail server either to use SMTP AUTH to identify the sending domain or to present one of your domain names in the HELO or EHLO command
Cause
Misconfiguration of the G Suite account.
Resolution
Re-check the G Suite settings as per the following article.
For any assistance with configuring G Suite account, contact support as described on this page.
Comments
2 comments
I have been struggling with this one and was sure G Suite config was correct. Got 550, "5.7.0" error.
You can check error codes here: https://support.google.com/a/answer/3726730?hl=en
Solution 1: add another domain to "Add a domain or a domain alias" and verify it.
Only that domain will be able to send mail.
Solution 2: Change the full hostname in plesk (server settings) to a known domain in G Suite
All domains will be able to send mail.
Test it from the shell: echo TEST MESSAGE BODY | mail -s test mail subject youremail@yourdomain.com
PS: in /etc/postfix/main.cf I only modified this line: relayhost = [smtp-relay.gmail.com]:587
Just wanted to share what worked for me.
Hi @Brian Chin Thank you for sharing!
Please sign in to leave a comment.