Skip to content

Test mail does not work with smtp.1und1.de, while normal mails work #175

Open
@amenk

Description

Magento version #:

Edition (EE, CE, OS, etc):

2.3.5

Expected behavior:

It sends the test mail

Actual behavior:

Error message received

Bummer!

Transaction failed Reject due to policy restrictions. For explanation visit https://www.ionos.com/help/index.php?id=2425&c=hd />

We believe that is the right error text:

https://www.ionos.com/help/index.php?id=2425&c=hd#c139127

554 Transaction failed, reject due to policy restrictions
Problem:

The email was rejected by the IONOS SMTP server because the standards defined in RFC 5321 and RFC 5322 were not adhered to.

Solution:

The email client must meet the following criteria:

The header lines of the email must contain exactly one valid "Date" line according to RFC 2822.
The following header lines may only exist once: From, Sender, To, CC, Subject
The header lines mentioned must be syntactically correct
Note: The To and CC lines can contain multiple recipients.

In accordance with the recommendations from RFC7103, incorrect messages are not automatically corrected by IONOS, otherwise DKIM signatures become invalid. For more information about DKIM signatures, see the IONOS article Configuring DMARC Records for a Domain.
  • The interesting part is that normal Magento Mails work through the extension, just the test mail doesn't

I had a log at the logging in vendor/laminas/laminas-mail/src/Protocol/AbstractProtocol.php:261

it shows this header which seems valid

image

I am pretty sure that 1und1 / ionos has a problem with the

To: [email protected] [email protected]

syntax

It tried with telnet and

works

but

does not work for 1und1.

Steps to reproduce:

  • Configured a smtp.1und1.de account
  • Try test mail in backend

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions