I am getting bounce backs when Commerce Invoice Receipt sends messages only to AOL recipients. Is anyone else having this issue? Below is a bounce back.

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

 redacted@aol.com
   SMTP error from remote mail server after end of data:
   host mailin-03.mx.aol.com [149.174.159.98]: 521 5.2.1 :
    AOL will not accept delivery of this message.

------ This is a copy of the message, including all the headers. ------

Return-path: <nobody@sitename.com>
Received: from nobody by sitename.com with local (Exim 4.82)
	(envelope-from <nobody@sitename.com>)
	id 8C6sj6-0008UV4-RD
	for redacted@aol.com; Mon, 27 Jan 2014 15:24:13 -0500
To: Anonymous <redacted@aol.com>
Subject: Thank You For Your Order
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8; format=flowed;
Content-Transfer-Encoding: 8Bit
X-Mailer: Drupal
From: Site Name <redacted@sitename.com>
Message-Id: <8C6sj6-0008UV4-RD@sitename.com>
Date: Mon, 27 Jan 2014 15:24:12 -0500
X-OutGoing-Spam-Status: No, score=1.1


<div>
   <table width="100%" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#CCC" style="width:100%; border-spacing: 0; font-size: 12px;"><tr>
<td>
         <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFF" style="font-family:verdana, arial, helvetica;font-size:10px;width:100%;border-spacing:0;">
<tr>
<td>
               <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family:verdana, arial, helvetica;font-size:11px;width:100%;border-spacing:0;"><tr>
<td nowrap style="line-height:1.6em;background-color:#341b0c;padding:5px;" valign="middle">
			<img src="http://www.sitename.com/sites/default/files/logo.png">
</td>
                 </tr></table>
</td>
           </tr>
<tr>
<td>
               <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family:verdana, arial, helvetica;font-size:11px;width:100%;border-spacing:0;">
<tr>
<th colspan="2" style="background:#FFF;color:#000;text-align:left;padding:4px 5px;text-transform:uppercase;font-weight:bold;border:0;">Thank you for your order! Your order details are below for your reference:</th>
                 </tr>
<tr>
<td colspan="2">

                     <table width="100%" cellspacing="0" cellpadding="0" style="font-family:verdana, arial, helvetica;font-size:1em;width:100%;border-spacing:0;"><tr>
<td valign="top" width="50%" style="padding: 0 5px;">
                           <br><b>Account No:</b> 0<br><br><b>Order Date:</b> 27 January, 2014<br><br><b>Additional Comments:</b><br><br>
</td>
                         <td valign="top" width="50%" style="padding: 0 5px;">
                           <br><b>Web Order No:</b> 359<br><br><b>Email Address:</b> redacted@aol.com<br><br><b>I understand My Likeness may be used by means of various media:</b><br>
                           yes<br>
</td>
                       </tr></table>
</td>
                 </tr>
</table>
</td>
           </tr>
<tr>
<td>
               <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:verdana, arial, helvetica;font-size:11px;width:100%;border-spacing:0;"><tbody>
<tr>
<td style="border-bottom: 1px dotted #CCC;"><div>



     <div>
     <p>No line items found.</p>
   </div>






</div></td>
                   </tr>
<tr>
<td><table style="width:200px;border-spacing:0;font-size:12px;padding-top:20px;float:right;"><tbody><tr style="background: none repeat scroll 0 0 #FFFFFF;">
<td style="font-weight:bold;padding:4px 5px;">Order total</td>
<td style="width:100px!important;text-align:right;padding:4px 5px;">$77.00</td> </tr></tbody></table></td>
                   </tr>
</tbody></table>
</td>
           </tr>
<tr>
<td>
               <table style="width:100%; border-spacing: 0; font-size: 12px;"><tr>
<td colspan="2" style="background:#341b0c;color:#FFF;padding:1em;font-size:0.9em;line-height:1.6em;border-top:#CCC 1px dotted;text-align:center;">
                     <p>Site Name. &bull; <a href="mailto:redacted@sitename.com" style="color:#FFF;">redacted@sitename.com</a></p>
                   </td>
                 </tr></table>
</td>
           </tr>
</table>
</td>
     </tr></table>
</div>
</html>

It seems as though the email is stripping the top html, head, and body tags from the bounce back that was given. Not sure if that is the issue or not. The email goes through to all other mail clients so far out of 202 of them so far, just not AOL.

CommentFileSizeAuthor
#10 removing-mime-encoding.patch970 bytescalbasi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BD3’s picture

Just an update on this, it looks like hotmail is rejecting them as well.

host mx3.hotmail.com [65.55.37.88]: 550 5.7.0 (COL0-MC2-F35) Message could not be delivered. Please ensure the message is RFC 5322 compliant.

greatmatter’s picture

Hotmail & AOL have caused us a tremendous number of headaches. We modified our SPF records, DKIM records, and discussed the issue with both SendGrid and MailGun (Rackspace) to get both providers to accept our emails.

Good luck...

Anonymous’s picture

This issue isn't really specific to this module. Anyone who runs a private mail server runs into these problems with AOL.

You should make sure your server's IP address is in your DNS SPF records (if you don't have any, you should look into it as it is an easy win).

If you really want to go the extra mile than sign all of your messages using DKIM signatures on the server as they go out.

There is a good chance AOL will still reject them, so good luck.

Fortunately since we're not in USA so it is easy enough for us to say use a different provider for your email...

Anonymous’s picture

Status: Active » Closed (works as designed)
HansKuiters’s picture

Status: Closed (works as designed) » Active

Isn't something else causing this problem? In the mail message the body starts with <div>. I am missing

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  </head>
  <body>

The message ends with
</body></html> so shouldn't it starting with the opening tags?

Anonymous’s picture

@capono If you have problems in your custom template they can be fixed there. If they are from this module I would probably create another issue specific to fixing the HTML.

As noted in #3, AOL routinely rejects mail from servers that are not configured to send with DKIM. If problems were caused by mail formatting (ie, not transport) you would certainly see the same issue with other providers. This is more of a sysadmin issue if you are having problems with AOL specifically. I can't see any way that a module maintainer will be able to fix sysadmin issues...

HansKuiters’s picture

Status: Active » Closed (works as designed)

@Ryan: you're right. I should have taken a better look. I created a new issue.

BD3’s picture

I just wanted to also post a followup here to my OP, it turns out we had the From field of the emails coming from [site:name] <[site:email]>. Well as it turns out, the Site Name had a comma and a period in it in which Hotmail/AOL did not like this. Removed those and no more rejections.

calbasi’s picture

Component: Miscellaneous » Code
Priority: Normal » Major
Status: Closed (works as designed) » Needs work

Hi,
It seems there is a problem with encoding of special characters, like accents é, ~, etc. When they are present at admin/config/system/site-information subject and from mail message fields look like:

From:
=?UTF-8?B?TWF0YXJyYW5pYSB+IENvc23DqXRpY2EgZWNvbMOzZ2ljYSA8aW5mb0BtYXRhcnI=?=
=?UTF-8?B?YW5pYS5jb20+?=

When not:

From: Matarrania Cosmetica ecologica

That was fixed here:

https://www.drupal.org/node/1908318

I'm going to try to patch it now...

calbasi’s picture

Status: Needs work » Patch (to be ported)
Related issues: +#1908318: Sender is double encoded
FileSize
970 bytes

Here you are the patch... I've tested in my site and it runs...
Ps. I think the reason of issue is double encoding...

calbasi’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
calbasi’s picture