• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Plesk password reset email for an email account bounced by IONOS

Alex Presland

Basic Pleskian
Username:

TITLE

Plesk password reset email for an email account bounced by IONOS

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian v18.0.81_build1800261111.12 os_Ubuntu 22.04. CPU = AMD EPYC 7571 (AWS)

PROBLEM DESCRIPTION

A user's password reset emails weren't getting through. I investigated and found an error message in /var/log/maillog:

status=bounced (host mx00.ionos.co.uk[212.227.15.171] said: 554-Transaction failed 554-Reject due to policy restrictions. 554 For explanation visit 554 Transaction failed Reject due to policy restrictions

STEPS TO REPRODUCE

Have a user whose external email address is hosted on IONOS. Trigger a password reset on their account.

ACTUAL RESULT

User doesn't get the password reset email because it is summarily rejected by IONOS, citing that it is not formatted correctly.

EXPECTED RESULT

Email is successfully delivered to the user, so that they can reset their email account password

ANY ADDITIONAL INFORMATION

None at present.

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
I've sent myself a test email and looked at the headers... my findings are:
  1. The To: line in the headers is split across two rows, as it is 81 characters long. The actual email address it was going to is shorter, so that is unlikely to affect this.
  2. The email address in the To: field is being sent as UTF-8, as the redacted version below shows:

I've also taken the text and put it into a hex viewer, and confirmed that it only contains ASCII characters.
 
Hi Alex,

I think I can explain why IONOS rejects the message.

Your header is:
To: [email protected]?= <[email protected]>

Plesk puts the mailbox address into the display-name part of the header and wraps it in an RFC 2047 encoded-word, even though it is pure ASCII. According to RFC 2047, section 5 (3), an encoded-word used inside a "phrase" (which is what a display name is) may only contain letters, digits and the characters ! * + - / = _ when using Q-encoding. The characters "@" and "." are not allowed there and would have to be encoded as =40 and =2E.

Plesk leaves "@" and "." unencoded inside the encoded-word. That makes the To header syntactically invalid, which matches the IONOS message "The header field To is syntactically not correct" (RFC 5322 / RFC 2047). Other providers are more tolerant, IONOS apparently is not.

A valid header would be, for example:
To: "[email protected]" <[email protected]>
(or the display name correctly encoded, or simply omitted).

This is my conclusion from the header you posted, I have not checked it against the Plesk source code.

@Sebahat.hadzhi could you please confirm this and fix the generation of the To header for password reset emails (no encoded-word for plain ASCII display names, or correct Q-encoding of "@" and "."), as it prevents delivery to strict providers like IONOS?

Workaround until then: set the new mailbox password manually in the panel for affected users.

Regards
Tessa
 
Back
Top