Dear All,

I am running postfix on a server in Amazon EC2. Some (but not all) email servers reject mail sent by postfix as spam, apparently because it is identifying itself using a domain name (ip-xx-xx-xx-xx.ec2.internal) that is valid only within the EC2 network. A sanitized except from a mailer-daemon bounce message is reproduced at the end of this message.

I can fix the problem by running

  hostname mail.mydomain.com

at boot time, but I would prefer a solution that just involves changing the postfix configuration.

I've tried setting the variables mydomain and myhostname to the correct public domain names in main.cf, but the server still identifies itself as ip-xx-xx-xx-xx.ec2.internal.

Any help would be greatly appreciated.

Best Regards,

--
Jonathan Turkanis
CodeRage
http://www.coderage.com

--

From mailer-dae...@ip-xx-xx-xx-xx.ec2.internal  Sat May 16 16:47:39 2009
Return-Path: <mailer-dae...@ip-xx-xx-xx-xx.ec2.internal>
Received: from localhost (localhost)
        by ip-xx-xx-xx-xx.ec2.internal (8.13.8/8.13.8) id n4GMldi9023760;
        Sat, 16 May 2009 16:47:39 -0600
Date: Sat, 16 May 2009 16:47:39 -0600
From: Mail Delivery Subsystem <mailer-dae...@ip-xx-xx-xx-xx.ec2.internal>
Message-Id: <200905162247.n4gmldi9023...@ip-xx-xx-xx-xx.ec2.internal>
To: <apa...@ip-xx-xx-xx-xx.ec2.internal>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="n4GMldi9023760.1242514059/ip-xx-xx-xx-xx.ec2.internal"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
Status: O

This is a MIME-encapsulated message

--n4GMldi9023760.1242514059/ip-xx-xx-xx-xx.ec2.internal

The original message was received at Sat, 16 May 2009 16:47:39 -0600
from localhost [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<johnsm...@aol.com>
    (reason: 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE)

   ----- Transcript of session follows -----
... while talking to mailin-04.mx.aol.com.:
>>> MAIL From:<apa...@ip-xx-xx-xx-xx.ec2.internal>
<<< 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE
554 5.0.0 Service unavailable

--n4GMldi9023760.1242514059/ip-xx-xx-xx-xx.ec2.internal
Content-Type: message/delivery-status

Reporting-MTA: dns; ip-xx-xx-xx-xx.ec2.internal
Received-From-MTA: DNS; localhost
Arrival-Date: Sat, 16 May 2009 16:47:39 -0600

Final-Recipient: RFC822; johnsm...@aol.com
Action: failed
Status: 5.0.0
Diagnostic-Code: SMTP; 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE
Last-Attempt-Date: Sat, 16 May 2009 16:47:39 -0600

Reply via email to