LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-26-2008, 03:51 PM   #1
ElGeorge
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:

Code:
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 "k4mgok.9i1rsk@mydomain.com"

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.

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

Rep: Reputation: 59
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 me@example.com

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.
 
  


Reply


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


All times are GMT -5. The time now is 12:34 AM.

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