Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emails rejected: 554-Reject due to policy restrictions #13

Closed
wagner4u opened this issue Apr 20, 2020 · 11 comments
Closed

Emails rejected: 554-Reject due to policy restrictions #13

wagner4u opened this issue Apr 20, 2020 · 11 comments

Comments

@wagner4u
Copy link

wagner4u commented Apr 20, 2020

Hi, since a few days the mail-server of ionos.de (1und1.de) rejects my emails sent from the email-addon.

**_> Bounce message or log excerpts
> =====================================================================
> 
> user.err email: msmtp: the server did not accept the mail msmtp: 
> server message: 554-Transaction failed msmtp: server message: 
> 554-Reject due to policy restrictions. msmtp: server message: 554 For 
> explanation visit 
> https://www.ionos.com/help/index.php?id=2425&ip=178.191.40.30&c=hd 
> msmtp: could not send mail (account default from 
> /etc/config/addons/email/msmtp.conf)_

Until then everything worked fine.
I opened a ticket at ionos.de and the answer is:

vielen Dank für Ihre Anfrage zum E-Mail Versand.
Die E-Mail wurde von unserem SMTP-Server abgelehnt, weil diese nicht die definierten Standards aus RFC5321 und RFC5322 einhält.
Es muss sichergestellt sein, dass der verwendete E-Mail Client folgende Kriterien zum Mailversand erfüllt:

  1. Die Kopfzeilen der E-Mail muss einen validen "Date:"-Eintrag nach RFC2822 beinhalten: https://tools.ietf.org/html/rfc2822#section-3.3
  2. Die folgenden Feldtypen dürfen nur einmal vorhanden sein: "Date:", "From:", "Sender:", "To:", "CC:", "Subject:"
  3. Werden die oben genannten Feldtypen verwendet, dürfen diese nicht leer sein und müssen syntaktisch korrekt sein.
    Hinweis: Die Feldtypen To und CC können selbstverständlich mehrere Empfänger enthalten.
    Wir halten uns an die Empfehlungen aus RFC7103 und führen keine automatische Korrektur fehlerhafter Nachrichten durch, weil hierdurch DKIM-Signaturen ungültig werden.
    Bitte entschuldigen Sie die entstandenen Unannehmlichkeiten.
    Freundliche Grüße

IONOS Kundenservice
1&1 IONOS SE
Elgendorfer Str. 57
56410 Montabaur

@jens-maus
Copy link
Member

Can you please post/send in an example mail your MSMTP tries to send via your ionos/gmx server? Here I quickly checked the raw email content and compared it to the information ionos provided in their answer and I couldn't identify and header field that might violate their rules.

@wagner4u
Copy link
Author

wagner4u commented Apr 22, 2020 via email

@wagner4u
Copy link
Author

Hi, one additional information regarding this problem:
The problem only occurs with the RasperryMatic-Version 1.6.8.c (in a Charly environment).
I have another original CCU3 with the same Addon-Version (version 1.6.8c). From this CCU3 it works still fine via the same account at ionos.de and same ionos.de-Server.
So, the problem should be in the RaspberryMatic-Version of the Email-Addon although it is the same version. Don't know what it means, but hopefully this info helps.
wagner4u

@jens-maus
Copy link
Member

@wagner4u Sorry, but you still didn't attach a raw email MSMTP tries to send through gmx/ionos. Please don't reply to github emails, but use the github ticket webinterface to upload the raw email for further inspection.

@jens-maus
Copy link
Member

And of course, strip any confidential information before uploading it here.

@wagner4u
Copy link
Author

Batterienstatus in Homematic Spitzenbach 9a.zip
Sorry, hopefully this worked.
wagner4u

@jens-maus
Copy link
Member

@wagner4u Nope, you simply exported it in Outlook format (CDFV2 Microsoft Outlook Message). I need of course the raw email msmtp or the email addon is creating and trying to send via the ionos mail server and not any email (and especially not in outlook format!) you received.

@wagner4u
Copy link
Author

Hi,
I found the problem !
Sorry, but I did not understand how to get the raw email while the addon tries to send it.
anyway:
The problem is simply, that since some days/weeks the provider does not accept two or more adresses in 'To:' separated by semicolon but only separated by comma !
Perhaps this does not anymore comply with the RFCs ??
I changed it and now it works. It worked with my other CCU3 since in this addon I only use one adress.
So simple.
In the email addon manual (http://192.168.xx.yy/addons/email/anleitung/) it says to separate several adresses by semicolon. This should be changed.
That's it.
Could you add this to the manual ? I will close the issue.
Thanks for your support.
wagner4u

@adb336
Copy link

adb336 commented May 18, 2020

Dear all,

with answer #14 I will check, if WEB.DE is behaving like IONOS.DE.

If it does not I will come back with results.

BTW: how can one intercept the mail sent from msmtp? As soon it is generated either it is sent - and therefor is deleted from the queue, or it is marked unsuccessful and I have no clue what happens then.

Kind regards,

Alexander De Bernardi

@ghost
Copy link

ghost commented Oct 14, 2022

Hello everyone,
we've had a problem with IONOS for three days now: we want to send mail from Swift (an iPhone app) via IONOS and it doesn't work:

["554-Transaction failed", "554-Reject due to policy restrictions.", "554 For explanation visit https://www.ionos.com/help/index.php?id=2425&ip=141.64.50.178&c=hd", ""]
Bad response received for command. commands: (
.), response: 554-Transaction failed".

We've tried everything (date format, additional headers, etc...) It just doesn't work.
We're very grateful for any help.
Best regards
Dragan

@acsr
Copy link

acsr commented Jan 26, 2023

Today I fixed continously refused sending via IONOS from default postfix under macOS Monterey giving:

[...] delivery via smtp.ionos.de[213.165.67.113]:587: host
    smtp.ionos.de[213.165.67.113] said: 554-Transaction failed 554-Reject due
    to policy restrictions. 554 For explanation visit
    https://postmaster.1und1.de/de/case?c=hi&i=ip&v=[...] (in reply to
    end of DATA command)

Solution

Changing my macOS full username in systempreferences to the version without ß Umlaut and replaced the ß with ss. After that mail send was not rejected by the smtp.ionos.de server anymore.

Remark:

In the /etc/postfix/main.cf lives an additional entry smtputf8_enable = no

Maybe the issue correlates with this or was actually caused by this. needs further testing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants