Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My e-mails were getting blacklisted hard by SpamAssasin because of a "MSGID_FROM_MTA_SHORT Message-Id was added by a relay" flag which added 3.3 points to the e-mail.
I solved the problem by adding some code o the activeMailLib.php file to create "Message-Id" header. Probably not the correct way to handle this but it worked. Someone should get in contact with the creators of this file and tell them about the problem. Not sure about the proper way to handle this myself.
Comments
Comment #1
nedjoThanks for the note. Please post your change and I'll look at incorporating it. The licensing allows us to modify the class, or we could add this to headers before the class call.
Comment #2
Steve Dondley CreditAttribution: Steve Dondley commentedDescription of change:
I added te following line before line #335 in the activeMailLib.php file:
$this->headers['Message-Id'] = '<1234@alpha.sndservers.com>';
That't it.
Comment #3
blalond CreditAttribution: blalond commentedThanks for this info. I made the change in activeMailLib.php. Just to clarify, I put it here:
Also, I wonder if changing the From: field will help lower the spam accusations of the emails sent by Mail. I'm trying this change in mail.module:
Does anyone think that this will help?
I came to this issue node because my ISP warned me that some mail server reported that I was spamming. Their first recommendation was to remove all AOL.COM addresses from my subscriber list. I'm at least glad that I could try the change in activeMailLib.php. Thanks!
Peace,
-Brian
Comment #4
zerolab CreditAttribution: zerolab at Torchbox commented