autoresponder blanking e-mail address due to foreign characters
We've taken a deep dive into e-mails which are handled incorrectly by the built-in autoresponder that users can set up in cPanel webmail home. What happens is:
the e-mail is delivered
autoresponder tries to send a reply
the e-mail's from: header considered is corrupted
the sender receives a bounce message "Mail delivery failed: returning message to sender"
the local recipient receives a bounce message "Mail failure - no recipient addresses".
the from: header corruption in legitimate messages appears limited to cases where the sender is using non-roman characters (e.g. Taiwanese customers). X-Loop: holds the right e-mail address but the from: field is blank.
Is there anything that can be done to fix this issue?
-
Hey there! Can you let me know how I can reproduce this on a cPanel server so I can do some additional testing? If you can provide click-by-click directions to make this error happen I can take a look!
0 -
Hey cPRex here's a php script that will replicate the problem.
The test recipient account should have an autoresponder enabled.<?php
$target_domain = "example.com";
// Recipient
$to = "test@".$target_domain;
// Subject
$subject = "Test Email";
// Message body
$message = "This is a test email with a custom From name.";
// MIME-encoded From name with commas and non-roman characters
$from_string = "=?UTF-8?B?MTIzNDU26aWL6K+V56GE5aSPIFpoYW5nLCBXZWk=?=";
$from_email = "processing@".$target_domain;
$from_full = "From: $from_string <".$from_email.">";
// Headers
$headers = $from_full."\r\n";
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";
// Send the email
if (mail($to, $subject, $message, $headers)) {
echo "Email sent successfully.";
} else {
echo "Failed to send email.";
}
?>0 -
Excellent - I love when the testing is that easy :)
I've created case CPANEL-48649 with our developers so they can take a look at this, but I don't have a workaround available at this time. It seems like they'll need to edit the autoresponder system directly in order to resolve this.
I have linked this Forums thread to the case so if I hear any updates on my end I'll be sure to post!
0
Please sign in to leave a comment.
Comments
3 comments