Mailing Issues

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
aluminumpork
Forum Newbie
Posts: 14
Joined: Mon Oct 24, 2005 8:54 pm

Mailing Issues

Post by aluminumpork »

I'm using PHP5 on Debian. I'm sending out account activation emails when the user registers. It's a legit site and hasn't even been live, so therefore it couldn't even have been flagged some how for spam.

Gmail always receives the email perfectly, Yahoo gets it as well but flags it a "Bulk" (spam). Most other email providers don't even let it through at all. I posted this in Linux because it seems to pertain to my server configuration more than anything.

I checked the headers that gmail is showing, here they are:

Code: Select all

X-Gmail-Received: c23778354dcf613f740a3fc5c90116e1e8d256f3
Delivered-To: my_address@gmail.com
Received: by 10.70.19.6 with SMTP id 6cs1092989wxs;
        Mon, 11 Sep 2006 13:30:59 -0700 (PDT)
Received: by 10.35.102.1 with SMTP id e1mr9548058pym;
        Mon, 11 Sep 2006 13:30:59 -0700 (PDT)
Return-Path: <daemon@localhost.localdomain>
Received: from localhost.localdomain ([71.39.28.38])
        by mx.gmail.com with ESMTP id 38si1741916nzk.2006.09.11.13.30.58;
        Mon, 11 Sep 2006 13:30:59 -0700 (PDT)
Received-SPF: neutral (gmail.com: 71.39.28.38 is neither permitted nor denied by domain of daemon@localhost.localdomain)
Received: from localhost.localdomain (daemon@localhost.localdomain [127.0.0.1])
	by localhost.localdomain (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k8AJW60U011255
	for <my_address@gmail.com>; Sun, 10 Sep 2006 14:32:06 -0500
Received: (from daemon@localhost)
	by localhost.localdomain (8.13.4/8.13.4/Submit) id k8AJW6Dl011253;
	Sun, 10 Sep 2006 14:32:06 -0500
Date: Sun, 10 Sep 2006 14:32:06 -0500
To: my_address@gmail.com
Subject: CanUSolveIt.com - Account Activation
From: newaccount@canusolveit.com
Message-ID: < TheSystem@192.168.0.2>
X-Mailer: PHP v5.1.4
The only thing I changed in there was my email address. Notice the daemon@localhost.localdomain as the return path. It doesn't make sense, because I'm setting my own return path in the headers when I send. I have a proper domain and static IP that my server is running on, shouldn't it say something other than that.

I'm by no means a pro at setting up LAMP servers, anyone have a few pointers?

Many thanks.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

aluminumpork
Forum Newbie
Posts: 14
Joined: Mon Oct 24, 2005 8:54 pm

Post by aluminumpork »

Okay, well I guess that explains it. It seems that my faulty configuration was what did it on some of my test emails to (yahoo, hotmail).

Here is my current header from gmail:

Code: Select all

X-Gmail-Received: e4e3332bf5cc2908836fc3a69d2ef74edf520ba8
Delivered-To: grifty@gmail.com
Received: by 10.70.19.6 with SMTP id 6cs1106755wxs;
        Mon, 11 Sep 2006 19:24:35 -0700 (PDT)
Received: by 10.35.90.20 with SMTP id s20mr9993161pyl;
        Mon, 11 Sep 2006 19:24:35 -0700 (PDT)
Return-Path: <my_address@gmail.com>
Received: from php.widgetscripts.com ([71.39.28.38])
        by mx.gmail.com with ESMTP id 34si2994192nza.2006.09.11.19.24.35;
        Mon, 11 Sep 2006 19:24:35 -0700 (PDT)
Received-SPF: neutral (gmail.com: 71.39.28.38 is neither permitted nor denied by domain of grifty@gmail.com)
Received: from php.widgetscripts.com (daemon@localhost [127.0.0.1])
	by php.widgetscripts.com (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k8B1Pj0q002114
	for <my_address@gmail.com>; Sun, 10 Sep 2006 20:25:45 -0500
Received: (from daemon@localhost)
	by php.widgetscripts.com (8.13.4/8.13.4/Submit) id k8B1PfZ4002112;
	Sun, 10 Sep 2006 20:25:41 -0500
Date: Sun, 10 Sep 2006 20:25:41 -0500
To: my_address@gmail.com
Subject: CanUSolveIt.com - Account Activation
MIME-Version: 1.0
X-Mailer: htmlMimeMail5 <http://www.phpguru.org/>
From: "CanUSolveIt.com" <my_address@gmail.com>
X-Priority: 1
X-MSMail-Priority: High
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Message-ID: <j5emms.lb8jt4@canusolveit.com>
Does that seem like a healthy header? I changed the domain sendmail uses (thank for the link by the way, found resources on there that were very very helpful) to php.widgetscripts.com (which is a real domain of mine) and also changed it anywhere I could find. It seems there's still one mention of "daemon@localhost" (in the last "Received" line), could that still cause a problem? Spamhaus's listing reason was because of "improper HELO domain" or something along those lines. Does the current header look healthy, and do you think it would be safe to request it's removal now?

Thanks for your help.
songwind
Forum Newbie
Posts: 14
Joined: Wed Jul 26, 2006 9:27 am

Post by songwind »

hi aluminumpork, have you fixed your problem?

I also got some problems for sending the mails to hotmail by using php mail()...
aluminumpork
Forum Newbie
Posts: 14
Joined: Mon Oct 24, 2005 8:54 pm

Yep, everything seems to fine.

Post by aluminumpork »

I'm now able to send to Yahoo, Hotmail, Gmail and a bunch of other smaller providers without issue, and without hitting the bulk/spam folder. Some really strict providers (a minnesota university) blocked my email, but I hear that block tons of stuff, so I guess I'll have to provide some work around.

There were a bunch of things that caused the problem. Don't have time now, I'll post later.
Post Reply