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

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

Open
amenk opened this issue Nov 23, 2020 · 2 comments
Open

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

amenk opened this issue Nov 23, 2020 · 2 comments

Comments

@amenk
Copy link

amenk commented Nov 23, 2020

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
@amenk
Copy link
Author

amenk commented Nov 24, 2020

One addition: I realized that the Hello from MagePal SMTP (1 of 2) mail arrives, the above problem seems to be with the 2 of 2 mails.
What is the difference between those two send-outs?

@mkristandabm
Copy link

One addition: I realized that the Hello from MagePal SMTP (1 of 2) mail arrives, the above problem seems to be with the 2 of 2 mails.
What is the difference between those two send-outs?

I use the Magento 2.4.2 (fresh installation) and face the same challenge with the second email test and found that the domain name in "To" field is missing.

I'm using outlook SMTP on the configuration. The first test mail is successfull without any hassle and the second one give an error :

Title : Undeliverable: Hello from MagePal SMTP (2 of 2)
Delivery has failed to these recipients or groups:
info@
The format of the email address isn't correct. A correct address looks like this: [email protected]. Please check the recipient's email address and try to resend the message.

For example:

The first mail there the "To" field refers to '[email protected]'
The second mail refers to 'info@ <example.com [email protected]>'

Any workaround?

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

No branches or pull requests

2 participants