# Error RFC 2822, 3.6.2

**URL:** <https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330>\
**Category:** Product Support\
**Created:** [September 14, 2015, 12:43pm UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330 "2015-09-14T12:43:29Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beloa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/beloa/32/1397_2.png) [@Beloa](https://forum.mautic.org/u/Beloa)\
**Post date:** [September 14, 2015, 12:43pm UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/1 "2015-09-14T12:43:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Beloa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/beloa/32/1397_2.png) [@Beloa](https://forum.mautic.org/u/Beloa)\
**Post date:** [September 14, 2015, 12:43pm UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/2 "2015-09-14T12:43:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 14, 2015, 7:05pm UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/3 "2015-09-14T19:05:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Beloa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/beloa/32/1397_2.png) [@Beloa](https://forum.mautic.org/u/Beloa)\
**Post date:** [September 15, 2015, 4:38am UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/4 "2015-09-15T04:38:41Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 15, 2015, 5:06am UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/5 "2015-09-15T05:06:02Z")

</div>

Yes, that’s new in 1.2.0.

---

<div class="post-metadata">

**Author:** ![Beloa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/beloa/32/1397_2.png) [@Beloa](https://forum.mautic.org/u/Beloa)\
**Post date:** [September 15, 2015, 6:23am UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/6 "2015-09-15T06:23:29Z")

</div>

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) ?

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 15, 2015, 6:30am UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/7 "2015-09-15T06:30:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Beloa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/beloa/32/1397_2.png) [@Beloa](https://forum.mautic.org/u/Beloa)\
**Post date:** [September 15, 2015, 7:02am UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/8 "2015-09-15T07:02:08Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Beloa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/beloa/32/1397_2.png) [@Beloa](https://forum.mautic.org/u/Beloa)\
**Post date:** [September 16, 2015, 12:02pm UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/9 "2015-09-16T12:02:09Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Beloa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/beloa/32/1397_2.png) [@Beloa](https://forum.mautic.org/u/Beloa)\
**Post date:** [September 16, 2015, 1:17pm UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/10 "2015-09-16T13:17:54Z")

</div>

Upon importing new leads, strange thing happens:

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

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/error-rfc-2822-3-6-2/2330/11 "2020-02-02T22:58:20Z")

</div>


