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

nedjo’s picture

Thanks 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.

Steve Dondley’s picture

Description 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.

blalond’s picture

Thanks for this info. I made the change in activeMailLib.php. Just to clarify, I put it here:

  if ($this->mailreceipt){
		$this->headers["Disposition-Notification-To"]=$this->mailreceipt;
		$this->headers["X-Confirm-Reading-To"]=$this->mailreceipt;
	}
  $this->headers['Message-Id'] = ''; // this is the added line (new line 335)
  if ($this->mailpriority){
		switch($this->mailpriority){

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:

// old line: 
// $node->from_name = ($user->uid == 1 ? variable_get('site_name', 'drupal') : t('%user at %site', array('%user' => $user->name, '%site' => variable_get('site_name', 'drupal'))));
// new line:
$node->from_name = ($user->uid == 1 ? variable_get('site_name', 'drupal') : t($user->name));

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

zerolab’s picture

Issue summary: View changes
Status: Active » Closed (outdated)