For the first time I decided to get an self managed VPS. It’s gone pretty good so far. I’m using Virtualmin on Ubuntu 12.04 with Postfix as my mail server. I have noticed an issue that seems to be sending all my emails to peoples spam folders. Some header content is missing.
A sample header
from: Site Name webmaster@com
to: username emailaddress@com
date: Wed, May 8, 2013 at 11:31 PM
subject: Test Email
mailed-by: com
As you can see everything shows as from or to “com” with no domain. Anyone have any ideas? I obviously missed something along the way.
Delivered-To: receiver@gmail.com
Received: by xx.xxx.xxx.xxx with SMTP id db14csp45890bkb;
Thu, 23 May 2013 02:12:27 -0700 (PDT)
X-Received: by xx.xx.x.xx with SMTP id o9mr2996106paa.13.1369300346519;
Thu, 23 May 2013 02:12:26 -0700 (PDT)
Return-Path:
Received: from mysite.com (mysite.com. [xxx.xxx.xxx.x])
by mx.google.com with ESMTP id wv10si5768587pbc.101.2013.05.23.02.12.25
for ;
Thu, 23 May 2013 02:12:26 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of mysite@com designates xxx.xxx.xxx.x as permitted sender) client-ip=xxx.xxx.xxx.x;
Authentication-Results: mx.google.com;
spf=pass (google.com: best guess record for domain of mysite@com designates xxx.xxx.xxx.x as permitted sender) smtp.mail=mysite@com
Received: by mysite.com (Postfix, from userid 0)
id 1C6F86852E5; Thu, 23 May 2013 02:11:55 -0700 (PDT)
From: mysite@com
Subject: Testing
To: receiver@com
Message-Id: <13693040955.2415@mysite.com>
X-Originating-IP: xx.xxx.xx.xx
X-Mailer: Webmin 1.630
Date: Thu, 23 May 2013 02:11:55 -0700 (PDT)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="bound1369300315"
This is a multi-part message in MIME format.
I followed some of the leads in the following thread and found that some of those files did have my old hostname. Fixed, restarted, still the same. What’s really confusing is why does the receivers domain get removed?