I know this isn’t necessarily Invoice Ninja-specific, however, to be able to use this awesome software, I am hoping to get this configured. I am sure others would benefit from some documentation on this.
I am a G Suite account holder and have it tied to my main domain, in this example: mydomain.com. I am essentially wanting to be able to route all of Invoice Ninja’s emails through my G Suite account so my clients see emails as coming from my site.
On the initial Invoice Ninja setup/installation (I am self-hosting), I keep getting this error:
“Expected response code 250 but got code “550”, with message “Invalid credentials for relay [2604:a980:801:a1::a9f:6003]. 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. For more information, please visit https://support.google.com/a/answer/6140680#invalidcred””
I’m completely stumped for now. I’ve tried getting this set up many different ways. Has anyone else been able to successfully get G Suite/Gmail’s SMTP relay working with Invoice Ninja?
I’m going to include all of my settings below (obfuscated for security) if someone might consider helping me. I would sincerely appreciate it so much!!
Records (Type | Host | Value):
A - @ - 111.11.1111.111 (IP of my webserver)
CNAME - crm - mydomain.com
TXT - google._domainkey - v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ… (truncated)
TXT - @ - v=spf1 ip4:111.11.1111.111 include:_spf.google.com ~all
TXT - _dmarc.mydomain.com - v=DMARC1; p=quarantine; rua=mailto:firstname.lastname@example.org
- I have 2-step verification turned on for my account, so I created an app-specific password for my email@example.com account.
SMTP relay settings:
Allowed senders: Only addresses in my domains
- I have checked “Only accept mail from specified IP address(s)” and added the IP address of my webserver (i.e. 111.11.1111.111)
- I have checked “Require SMTP authentication”
- I have checked “Require TLS encryption”
Invoice Ninja initial installation email settings:
From Name: My Company Name
From Address: firstname.lastname@example.org
When clicking the “Send test email” button with all of these settings and configuration, this is when I get the “Invalid credentials for relay [2604:a980:801:a1::a9f:6003]. The IP address you’ve registered in your G Suite SMTP Relay service doesn’t match…” error.
Would appreciate any insight. Maybe someone else has successfully gotten this set up/configured and might share? I’ve poured through Google’s documentation on getting SMTP relays set up but it seems as though everything I’ve done matches.
Thank you truly in advance!!