Delivered-To: amigovista@gmail.com
Received: by 10.141.129.17 with SMTP id g17cs376644rvn;
Fri, 26 Dec 2008 11:05:47 -0800 (PST)
Received: by 10.210.142.10 with SMTP id p10mr177422ebd.95.1230318345065;
Fri, 26 Dec 2008 11:05:45 -0800 (PST)
Return-Path: <mailer@mysite.com>
Received: from mail.mysite.org (mysite.org [203.54.237.227])
by mx.google.com with ESMTP id p10si16333536gvf.20.2008.12.26.11.05.43;
Fri, 26 Dec 2008 11:05:44 -0800 (PST)
Received-SPF: neutral (google.com: 203.54.237.227 is neither permitted nor denied by best guess record for domain of mailer@mysite.com) client-ip=203.54.237.227;
Authentication-Results: mx.google.com; spf=neutral (google.com: 203.54.237.227 is neither permitted nor denied by best guess record for domain of mailer@mysite.com) smtp.mail=mailer@mysite.com
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by mail.mysite.org (Postfix) with SMTP id 66C3B4D0100
for <amigovista@gmail.com>; Fri, 26 Dec 2008 18:52:59 +0000 (UTC)
To: amigovista@gmail.com
From: mailer@mysite.com
Subject: Hey my first email
Message-Id: <20081226185300.66C3B4D0100@mail.mysite.org>
Date: Fri, 26 Dec 2008 18:52:59 +0000 (UTC)
This is my first email on debian postfix after installing configuring it.
It was easy. See you
Now I want Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) to be replaced by mysite.org and then check if mail reaches the inbox.
I have postfix running on debian etch. How do I do the required changes
telnet mysite.org 25
Trying 203.54.237.227...
Connected to mysite.org.
Escape character is '^]'.
220 mail.mysite.org ESMTP Postfix (Debian/GNU)
mail from:<mailer@mysite.com>
250 2.1.0 Ok
rcpt to:<amigovista@gmail.com>
data
To: amigovista@gmail.com
From: mailer@mysite.com
Subject: Hey my first email
This is my first email on debian postfix after installing configuring it.
It was easy. See you
554 5.7.1 <amigovista@gmail.com>: Relay access denied
554 5.5.1 Error: no valid recipients
221 2.7.0 Error: I can break rules, too. Goodbye.
Connection closed by foreign host.
but
debian:~# telnet localhost 25 works fine (send mail atleast to spam!!!)
Dear Chris,
previously it was localhost,25 but then i had changed it to mysite.org. I believe mysite.org is more preferable as to what i read on your swiftmailer docs
The square brackets are meant for IP literals I'm surprised it connects with those in there but otherwise yes that's fine.
The reason mysite.org is behaving the same as localhost is because it's in your /etc/hosts file so when you connect to mysite.org locally you're actually connecting to 127.0.0.1.
This really should not be a problem and if you're trying to fix a spam issue I think you're getting hung up on the wrong issue The only time identifying ones-self as localhost becomes a problem is when your SMTP server tries to relay mail onto the next MX by identifying itself as "localhost":