# Mails from server go into SPAM

**URL:** <https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203>\
**Category:** Virtualmin\
**Created:** [April 13, 2011, 8:39am UTC](https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203 "2011-04-13T08:39:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zahir](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/z/df705f/32.png) [@zahir](https://forum.virtualmin.com/u/zahir)\
**Post date:** [April 13, 2011, 8:39am UTC](https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203/1 "2011-04-13T08:39:33Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [April 13, 2011, 1:56pm UTC](https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203/2 "2011-04-13T13:56:58Z")

</div>

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/](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

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [April 13, 2011, 3:25pm UTC](https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203/3 "2011-04-13T15:25:36Z")

</div>

Do you have a FQDN hostname set?

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

-Eric

---

<div class="post-metadata">

**Author:** ![zahir](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/z/df705f/32.png) [@zahir](https://forum.virtualmin.com/u/zahir)\
**Post date:** [April 13, 2011, 3:27pm UTC](https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203/4 "2011-04-13T15:27:47Z")

</div>

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](mailto: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](mailto:apache@localhost.localdomain)  
Received: from localhost.localdomain ([server.host.com](http://server.host.com) [xx.xx.xx.xx])  
by [mx.google.com](http://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](http://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](http://mx.google.com); spf=neutral ([google.com](http://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](mailto: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](mailto:201104131454.p3DEs5mw004029@localhost.localdomain)  
To: [john@doe.com](mailto:john@doe.com)  
Subject: Confirm Email Address  
From: “[Host.com](http://Host.com)” [member-services@host.com](mailto:member-services@host.com)  
Reply-To: “[Host.com](http://Host.com)” [member-services@host.com](mailto:member-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”

---

<div class="post-metadata">

**Author:** ![zahir](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/z/df705f/32.png) [@zahir](https://forum.virtualmin.com/u/zahir)\
**Post date:** [April 13, 2011, 3:28pm UTC](https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203/5 "2011-04-13T15:28:50Z")

</div>

yes we do, it shows up as

[server.host.com](http://server.host.com) ([host.com](http://host.com) being our website)

Yet, sendmail send it as localhost.localdomain

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [April 13, 2011, 3:33pm UTC](https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203/6 "2011-04-13T15:33:54Z")

</div>

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](http://server.host.com)). You’d also want to make sure that hostname was defined in /etc/hosts.

-Eric

---

<div class="post-metadata">

**Author:** ![zahir](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/z/df705f/32.png) [@zahir](https://forum.virtualmin.com/u/zahir)\
**Post date:** [April 14, 2011, 6:42am UTC](https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203/7 "2011-04-14T06:42:14Z")

</div>

We used this as a work around, works beautifully

[http://www.wormly.com/blog/2008/11/05/relay-gmail-google-smtp-postfix/S](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.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:51am UTC](https://forum.virtualmin.com/t/mails-from-server-go-into-spam/39203/8 "2020-04-30T05:51:45Z")

</div>

Closed on April 30, 2020, 5:51am UTC


