Mails from server go into SPAM

Mails from our server(using postfix) go into SPAM directly. We even tried using sendmail instead but they still go into spam. We recently shifted hosts. On the old host, they worked fine. Now we have this spam issue. Any idea why? or how we can fix this?

You could try looking at the email headers of your emails when they go into the spam folder, some spam filters will tell you why they were classified as spam. For example, SpamAssassin tells you what spam rules were tripped using the X-Spam-Status header.

Also, try inputting your server’s primary IP address in this RBL tester:

http://www.anti-abuse.org/multi-rbl-check/

That will review a number of email blacklists, and tell you if your IP address shows up on any of them.

-Eric

Do you have a FQDN hostname set?

For example, what shows up when you type the command “hostname”?

-Eric

Domains clear from blacklist, reverse DNS is fine. Mails still end up in spam.

Heres the header of the received mail in gmail

Delivered-To: john@doe.com
Received: by 10.231.142.165 with SMTP id q37cs169659ibu;
Wed, 13 Apr 2011 07:54:07 -0700 (PDT)
Received: by 10.43.63.142 with SMTP id xe14mr12435658icb.422.1302706447021;
Wed, 13 Apr 2011 07:54:07 -0700 (PDT)
Return-Path: apache@localhost.localdomain
Received: from localhost.localdomain (server.host.com [xx.xx.xx.xx])
by mx.google.com with ESMTPS id s1si1894326iba.124.2011.04.13.07.54.05
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 13 Apr 2011 07:54:06 -0700 (PDT)
Received-SPF: neutral (google.com: xx.xx.xx.xx is neither permitted nor denied by best guess record for domain of apache@localhost.localdomain) client-ip=xx.xx.xx.xx;
Authentication-Results: mx.google.com; spf=neutral (google.com: xx.xx.xx.xx is neither permitted nor denied by best guess record for domain of apache@localhost.localdomain) smtp.mail=apache@localhost.localdomain
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by localhost.localdomain (8.13.8/8.13.8) with ESMTP id p3DEs5h2004030
for john@doe.com; Wed, 13 Apr 2011 20:24:05 +0530
Received: (from apache@localhost)
by localhost.localdomain (8.13.8/8.13.8/Submit) id p3DEs5mw004029;
Wed, 13 Apr 2011 20:24:05 +0530
Date: Wed, 13 Apr 2011 20:24:05 +0530
Message-Id: 201104131454.p3DEs5mw004029@localhost.localdomain
To: john@doe.com
Subject: Confirm Email Address
From: “Host.commember-services@host.com
Reply-To: “Host.commember-services@host.com
MIME-Version: 1.0
Content-type: multipart/alternative; charset=iso-8859-1;boundary=EmailBoundary.8807d1bbc0f959d752fffced6163a618

–EmailBoundary.8807d1bbc0f959d752fffced6163a618
Content-Type: text/plain; charset=“ISO-8859-1”

yes we do, it shows up as

server.host.com (host.com being our website)

Yet, sendmail send it as localhost.localdomain

Well, I’m not familiar with configuring Sendmail – but if it’s setup somewhere to identify itself as localhost.localdomain, you’d want to make sure that was using an actual FQDN hostname (server.host.com). You’d also want to make sure that hostname was defined in /etc/hosts.

-Eric

We used this as a work around, works beautifully

http://www.wormly.com/blog/2008/11/05/relay-gmail-google-smtp-postfix/S

I’m just wondering if we can configure this to use multiple email addresses.