Gmail SMTP Relay-Einrichtung funktioniert nicht

Hi Folks,

I’ve installed discourse on an Ubuntu 18.04 by this guide (it’s with Ubuntu 16.04, but I think its quite the same):

Then I setup the email configuration like here discribed:

Note: It dont worked for me to apply just a IP range, only full IP-Address worked.

But I still dont get emails working. When I do the doctor test, it says:

==================== MAIL TEST ====================
...
...
SMTP server connection successful.
Sending to info@likamundi-lernen.de. . . 
Sending mail failed.
Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to

==================== DNS PROBLEM ====================
This server reports NOT FOUND, but discourse.likamundi.de reports Discourse 2.4.0.beta2 .
This suggests that you have a DNS problem or that an intermediate proxy is to blame.
If you are using Cloudflare, or a CDN, it may be improperly configured.

I also tried to set “Allowed senders” in the gmail suite to “all”, but that also not helped.

And of curse, if I try to setup the admin account, I just dont get a mail…

Can anybody help me here, cant be possible that thats so hard to setup ^^

Kind regards,
Zacharias

Relaying through Gmail is a violation of their Terms of Service, so we do not support it. We recommend using a service like Mailgun.

Hmm. So maybe you’ve got a reverse proxy? Since

You’re in good shape there.

If you’re paying for Gsuite (and not Gmail) it’s not a violation of their TOS to have Discourse send mail, but it’s still a huge pain and you can’t get much help here. If you have a credit card your life will be much easier if you go with Mailgun (or similar).

Wahrscheinlich etwas spät, um dir hier zu helfen, aber ich kann bestätigen, dass es möglich ist, den GSuite SMTP-Relay zum Versenden deiner Discourse-E-Mails zu verwenden.

Im Folgenden findest du eine Konfiguration für die Nutzung des SMTP-Relays (in den Gmail-App-Einstellungen) ohne Authentifizierung (nur IP-Adresse). Wie du bereits sagst, musst du zunächst die App-Einstellungen so konfigurieren, dass sie „Nur E-Mails von den angegebenen IP-Adressen akzeptieren

Nein, das funktioniert nicht. Und keine bösen Absichten – es ist eine schreckliche Plattform-Idee, sowohl Domains als auch Mailserver zu verlangen, da beim Ändern der DNS-Einstellungen bei den meisten Domainanbietern der lokale E-Mail-Server durcheinandergerät. Ich versuche jetzt seit 4 Stunden, dies zu installieren.

Danke für den Workaround! Ich kann bestätigen, dass es funktioniert :slight_smile:

Das hat gerade bei mir funktioniert