Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-26-2008, 03:51 PM   #1
LQ Newbie
Registered: May 2007
Posts: 8

Rep: Reputation: 0
Question Problem with the Message-ID of outgoing Emails (missing domain)

Hello forum,

I have a PHP portal software on my server that sends Email notifications to users when certain actions happens on the site. Unfortunately all the notifications sent to users on Gmail, Yahoo and Hotmail are going straight to their SPAM folder.

I've checked everything that's recommended on this cases: SPF Records, Reverse DNS, etc. I've also confirmed that may domain/ip is not blacklisted.

The only thing left that I can notice as a potential problem is that the "Message-ID" header on those notification emails are being generated without a domain name. Something like this:

Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Message-ID: <k4mgok.9i1rsk@>
As you can see there's nothing after the "@", and all references that I've read on the Web states that an incorrect Message-ID can lead to a message being mis-identified as SPAM. Those Message-IDs should look like ""

Does anyone have an idea about this?

My server is a CentOS 4.5 box and I'm using Postfix as SMTP. I was initially using Sendmail but switched to Postfix to see if it helped (but it didn't).

Thanks in Advance.

Old 07-26-2008, 07:23 PM   #2
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
Have you examined the headers of one of the emails sent to the Spam folder?

Message-ID is not a very good spam identifier.

Php uses the sendmail binary. You can supply an envelope sender globally, or within your php app as the 5th parameter to the mail() call.

Add -f sender@domain to your sendmail_path in php.ini. Eg:

sendmail_path = /usr/sbin/sendmail -t -i -f

If you php app supplies the 5th parameter to mail(), you can override if necessary:

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

Make sure the envelope sender is valid, or bounces won't be possible and undelivered mail disappears.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Count outgoing emails GuitsBoy Linux - Server 3 11-27-2007 04:40 PM
saving outgoing emails in sendmail sqn Linux - Software 1 07-26-2006 07:26 AM
get a copy of outgoing and incoming emails cksoo Linux - Enterprise 0 02-12-2006 12:56 AM
Add text to outgoing emails Jobbie Linux - Software 4 11-28-2005 05:22 PM
Sendmail - outgoing emails have Machine name hunter44102 Linux - Networking 2 09-13-2004 07:52 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration