I am running an Ubuntu 10.04 LTS server and Amazon EC2. Just booted the community, installed apache2, php5, sendmail... thats about it.
Didn't change anything in the configurations. Last night I send a newsletter to about 2000 recipients.
mail.log shows that the messages are accepted for delivery, like this:
Jan 27 16:40:42 ip-10-48-213-66 sendmail: p0RGefNE024725: email@example.com, ctladdr=www-data (33/33), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=67364, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p0RGefKv024726 Message accepted for delivery)
But it seems to get bounced back like this:
Jan 27 16:40:42 ip-10-48-213-66 sm-mta: p0RGefKv024726: to=<firstname.lastname@example.org>, ctladdr=<email@example.com> (33/33), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=157483, relay=smtp.zoovienna.at. [22.214.171.124], dsn=4.0.0, stat=Deferred: 450 4.1.8 <firstname.lastname@example.org>: Sender address rejected: Domain not found
Jan 27 20:13:39 ip-10-48-213-66 sm-mta: p0RH5QCC032505: to=<email@example.com>, ctladdr=<firstname.lastname@example.org> (33/33), delay=03:08:13, xdelay=00:00:01, mailer=esmtp, pri=1777483, relay=mx00.kundenserver.de. [126.96.36.199], dsn=4.0.0, stat=Deferred: 421 invalid sender domain 'ip-10-48-213-66.eu-west-1.compute.internal' (misconfigured dns?)
Jan 27 20:13:39 ip-10-48-213-66 sm-mta: p0RH2CUw031458: to=<email@example.com>, ctladdr=<firstname.lastname@example.org> (33/33), delay=03:11:27, xdelay=00:00:00, mailer=esmtp, pri=1777483, relay=mxzhb.bluewin.ch. [188.8.131.52], dsn=4.0.0, stat=Deferred: 451 MAIL FROM: <email@example.com> Unable to verify MX-Record for domain ip-10-48-213-66.eu-west-1.compute.internal
always multiple times and still running...
I noticed that
/etc/mail/trusted-users is empty. But as the email seems to go out that should be ok.
/etc/mail/local-host-names looks like
now if i send a mail using the following php command:
var_dump(mail('firstname.lastname@example.org','subject!','body!','From: email@example.com','-f firstname.lastname@example.org'));
i recieve the following mail:
Delivered-To: email@example.com Received: by 10.42.219.8 with SMTP id hs8cs55591icb; Fri, 28 Jan 2011 03:28:51 -0800 (PST) Received: by 10.213.35.209 with SMTP id q17mr4059475ebd.53.1296214129940; Fri, 28 Jan 2011 03:28:49 -0800 (PST) Return-Path: <firstname.lastname@example.org> Received: from ip-10-48-213-66.eu-west-1.compute.internal (flimmit.com [184.108.40.206]) by mx.google.com with ESMTPS id u13si41731903eeh.3.2011.01.28.03.28.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 28 Jan 2011 03:28:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of email@example.com designates 220.127.116.11 as permitted sender) client-ip=18.104.22.168; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of firstname.lastname@example.org designates 22.214.171.124 as permitted sender) email@example.com Received: from ip-10-48-213-66.eu-west-1.compute.internal (localhost [127.0.0.1]) by ip-10-48-213-66.eu-west-1.compute.internal (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id p0SBRYQF000694 for <firstname.lastname@example.org>; Fri, 28 Jan 2011 11:27:34 GMT Received: (from www-data@localhost) by ip-10-48-213-66.eu-west-1.compute.internal (8.14.3/8.14.3/Submit) id p0SBRYCv000693; Fri, 28 Jan 2011 11:27:34 GMT Date: Fri, 28 Jan 2011 11:27:34 GMT Message-Id: <201101281127.p0SBRYCv000693@ip-10-48-213-66.eu-west-1.compute.internal> X-Authentication-Warning: ip-10-48-213-66.eu-west-1.compute.internal: www-data set sender to email@example.com using -f To: firstname.lastname@example.org Subject: subject! X-PHP-Originating-Script: 1000:test.php From: email@example.com body!
i also noticed that sending the mail takes quite a long time, which i know is an issue if there is something wrong with resolving adresses.
my sendmail path is not configured in php.ini but php info shows the following which should be correct:
/usr/sbin/sendmail -t -i
This is an email from the newsletter tool (phplist) which got through and does not show the x-authentication-warning header.
Can I somehow fix this or is there a way to identifiy who got the mails and who did not so I can re send?
Any help is a appriciated.
I just noticed that the mailing tool probably did not set the -f parameter. I fixed this. Now the local address still shows up but this is the same case in other emails from professional lists like golem.
So in the email above I produced with the -f paramter. Is this okay now or still problematic?