Error RFC 2822, 3.6.2

Hello



After an upgrade to 1.2.0, we’ve got the following errors upon sending mails



Address in mailbox given [xxx@zzz.com] does not comply with RFC 2822, 3.6.2.

Address in mailbox given [yyy@hhh.com] does not comply with RFC 2822, 3.6.2.

Address in mailbox given [uuu@iii.com] does not comply with RFC 2822, 3.6.2.



We use Mandrill API ; mautic is installed on a vps.

Any help appreciated



Thanks

Hello

After an upgrade to 1.2.0, we’ve got the following errors upon sending mails

Address in mailbox given [xxx@zzz.com] does not comply with RFC 2822, 3.6.2.
Address in mailbox given [yyy@hhh.com] does not comply with RFC 2822, 3.6.2.
Address in mailbox given [uuu@iii.com] does not comply with RFC 2822, 3.6.2.

We use Mandrill API ; mautic is installed on a vps.
Any help appreciated

Thanks

That is error right in the Mautic UI, right? Mautic is saying that those addresses aren’t valid and that he won’t send the email to them.

Exactly, message is displayed in the UI.
Same message upon importing new contacts.

This is new in 1.2
Appears in an older installation (after upgrde to 1.2) and in a fresh new one…

Yes, that’s new in 1.2.0.

Actually, the mail addresses are correct : they were used before upgrading to 1.2 and no errors were raised back then.

Do you have an idea how we could solve that (or disable this feature) ?

I don’t believe those invalid email addresses ever worked. Previous versions of Mautic didn’t have this feature. It doesn’t mean that emails were successfully sent to those email addresses. You can try to send them emails from your mail box and you’ll see those emails will be bounced right back.

I do confirm that those adresses previously worked:

I tried with our own mail adresses, with one personal @gmail.com and another with a history of 10 successfully received (and opened) newsletters…

FYI, I disabled the RFC check in:

/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers

by commenting lines in this function:

private function _assertValidAddress($address)
{
if (!preg_match(’/^’ . $this->getGrammar(‘addr-spec’) . ‘$/D’,
$address))
{
//throw new Swift_RfcComplianceException(
// ‘Address in mailbox given [’ . $address .
// ‘] does not comply with RFC 2822, 3.6.2.’
// );
}
}

Mails are correctly sent…

Upon importing new leads, strange thing happens:

leads with no mail adresses ARE imported…
while those with -valid- mails are not! (error RFC 2822)