Email configuration smtp doesn't work on 1and1/1und1/ionos hosting, but email app works

Ganz kurios. Ich habe zwei Clouds, in der einen funktioniert es ganz normal, sogar mit Port 465. Bei der anderen Fehlermeldung, siehe oben. Bei der ersten Cloud funktionieren sogar mehrere Emailadresse, die bei der zweiten nicht funktionieren. Keine Ahnung, welche Einstellung anders ist.

Not sure if anyone is still following this… But just in case:

I faced the same issue with IONOS Cloud (root) and their ready-made Nextcloud-Image.

I actually had to resolve two issues:

  1. Ports 25, 465 and 587 were blocked for outgoing traffic in IONOS firewall - I called support to have the firewall rules changed.

  2. I had to change local hostname from localhost.localdomain to the correct TLD. Otherwise smtp.ionos.de would reject the e-mails without further notification.

Trick for debugging (found it by accident):
Enter an additional @ sign into the E-Mail-From field or config variable (like ‘mail_from_address’ => ‘sender@@’ in ./config/config.php) and also enable mail debug (set ‘mail_smtpdebug’ => 1 in ./config/config.php). This way, the RFC validation will fail and output the e-mail address that actually gets send to SMTP. For whatever reason it uses my server’s local hostname rather than the one configured by ‘mail_domain’ parameter.

Anyways, it works now! :slight_smile:

Hallo,

leider ist mir der zuletzt genannte Trick zu hoch…

Auch ich haben dieses Problem:

die anderen genannten Sicherheits- und Porteinstellungen habe ich schon ausprobiert, allerdings ohne Erfolg.

Der Support von ionos teilt am Telefon mit dies sei ein Nextcloud-Problem sie können nicht helfen.

Mit den gleichen Daten kann ich auf ein Webmailer-Konto zugreifen.

Hat noch jemand eine Idee für mich? Oder ist das Problem schon an anderer Stelle gelöst und veröffentlicht und ich habe es nur noch nicht gefunden? Danke für Hilfe.

Problem gelöst!

Alle Einstellungen wie gehabt, aber von SSL/TLS auf STARTTls umstellen und den Port beibehalten. Sonnst hatt ich den jeweils auch geändert. jetzt klappts.

1 Like