1

Topic: Mail sent is reported in headers as coming from 127.0.0.1

Hi-

I am noticing that any email sent to Microsoft services (hotmail, outlook.com, live.com, etc) is ending up in junk.
I know my ip is not blacklisted, my DKIM and SPF records are correct and passing checks. I have a reverse PTR record set up and is correct.
I also ran my ip through various spam checks and it comes up fine.

But I think Microsoft see in my headers that mail is marked as coming from 127.0.0.1 and marking it as spam.

From microsoft site:

"Are you advertising yourself as a non-routable IP?
We may not accept email from senders who fail a reverse-DNS lookup. In some cases legitimate senders advertise themselves incorrectly as a non-internet routable IP when attempting to open a connection to Outlook.com."

Here is what shows in my headers:
Received: from mail.mydomain.com (mail.mydomain.com [127.0.0.1])
    by mail.mydomain.com (Postfix) with ESMTP id 2A7366383A
    for <myaccount@live.com>; Sun, 22 May 2016 18:20:52 +0000 (UTC)


Is there a setting in postfix I can change so it does not show the loopback IP?

Thanks


==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5.1
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Mail sent is reported in headers as coming from 127.0.0.1

I dont think it has anything to do with the localhost/127.0.0.1.
This info is from your hosts file.
Check your site with:
http://mxtoolbox.com/NetworkTools.aspx

it checks spf etc, blacklists.

3

Re: Mail sent is reported in headers as coming from 127.0.0.1

"localhost" or "127.0.0.1" appear in mail headers is normal, you don't need to worry about this.

4

Re: Mail sent is reported in headers as coming from 127.0.0.1

Thank you both for the responses.

I have tried all the tests on http://mxtoolbox.com/NetworkTools.aspx
SPF is good
reverse PTR is good
DKIM is good
All spam blacklists tests come out good

I still get sent to spam in Microsoft services (but arrive fine everywhere else) and after checking their website I thought this might have something to do with it. I have a test Exchange server as well which does not exhibit this behavior. This is a legitimate test email server for a small company and mail should not arrive in spam.

Is there anyway to have the headers show my correct external address?

Thanks

5

Re: Mail sent is reported in headers as coming from 127.0.0.1

ottoman wrote:

Is there anyway to have the headers show my correct external address?

*) What's wrong with this mail header? Why do you insist in it impacts the mail delivery?
*) Hotmail/Outlook.com/... are like a black box to us, it's hard to know why it considers an email is spam/junk.