I'm trying to send email from an Amazon EC2 instance (hosting http://Parcelspace.com) using the php mail() function as below
mail("********@gmail.com", "subject", "test", "From:info@parcelspace.com")
However the maillog gives me the following error;
Oct 20 10:43:41 ip-10-228-106-7 postfix/qmgr[7778]: 9D88140924: from=<root@ip-10-228-106-7.eu-west-1.compute.internal>, size=2568, nrcpt=1 (queue active)
Oct 20 10:43:41 ip-10-228-106-7 postfix/qmgr[7778]: BDA8940925: from=<root@ip-10-228-106-7.eu-west-1.compute.internal>, size=1175, nrcpt=1 (queue active)
Oct 20 10:43:41 ip-10-228-106-7 postfix/qmgr[7778]: C28594099E: from=<root@ip-10-228-106-7.eu-west-1.compute.internal>, size=3260, nrcpt=1 (queue active)
Oct 20 10:43:43 ip-10-228-106-7 postfix/smtp[7796]: 9D88140924: to=<root@ip-10-228-106-7.eu-west-1.compute.internal>, relay=outbound.mailhop.org[204.13.248.72]:2525, delay=294642, delays=294640/0.09/1.1/0.17, dsn=5.0.0, status=bounced (host http://outbound.mailhop.org[204.13.248.72] said: 550 Sender verify failed (in reply to MAIL FROM command))
Oct 20 10:43:43 ip-10-228-106-7 postfix/smtp[7798]: C28594099E: to=<root@ip-10-228-106-7.eu-west-1.compute.internal>, relay=outbound.mailhop.org[204.13.248.72]:2525, delay=189539, delays=189538/0.17/1.1/0.18, dsn=5.0.0, status=bounced (host http://outbound.mailhop.org[204.13.248.72] said: 550 Sender verify failed (in reply to MAIL FROM command))
Oct 20 10:43:43 ip-10-228-106-7 postfix/cleanup[7800]: 3FF424032E: message-id=<20101020144343.3FF424032E@www.parcelspace.com>
Oct 20 10:43:43 ip-10-228-106-7 postfix/cleanup[7802]: 41D4E4032F: message-id=<20101020144343.41D4E4032F@www.parcelspace.com>
Oct 20 10:43:43 ip-10-228-106-7 postfix/bounce[7799]: 9D88140924: sender non-delivery notification: 3FF424032E
Oct 20 10:43:43 ip-10-228-106-7 postfix/qmgr[7778]: 41D4E4032F: from=<>, size=5293, nrcpt=1 (queue active)
Oct 20 10:43:43 ip-10-228-106-7 postfix/qmgr[7778]: 9D88140924: removed
Oct 20 10:43:43 ip-10-228-106-7 postfix/qmgr[7778]: 3FF424032E: from=<>, size=4601, nrcpt=1 (queue active)
Oct 20 10:43:43 ip-10-228-106-7 postfix/bounce[7801]: C28594099E: sender non-delivery notification: 41D4E4032F
Oct 20 10:43:43 ip-10-228-106-7 postfix/qmgr[7778]: C28594099E: removed
Oct 20 10:43:43 ip-10-228-106-7 postfix/smtp[7797]: BDA8940925: to=<root@ip-10-228-106-7.eu-west-1.compute.internal>, relay=outbound.mailhop.org[204.13.248.72]:2525, delay=294581, delays=294580/0.12/1.1/0.28, dsn=5.0.0, status=bounced (host http://outbound.mailhop.org[204.13.248.72] said: 550 Sender verify failed (in reply to MAIL FROM command))
Oct 20 10:43:43 ip-10-228-106-7 postfix/cleanup[7800]: 627164030B: message-id=<20101020144343.627164030B@www.parcelspace.com>
Oct 20 10:43:43 ip-10-228-106-7 postfix/qmgr[7778]: 627164030B: from=<>, size=3208, nrcpt=1 (queue active)
Oct 20 10:43:43 ip-10-228-106-7 postfix/bounce[7799]: BDA8940925: sender non-delivery notification: 627164030B
Oct 20 10:43:43 ip-10-228-106-7 postfix/qmgr[7778]: BDA8940925: removed
Oct 20 10:43:44 ip-10-228-106-7 postfix/smtp[7797]: 627164030B: to=<root@ip-10-228-106-7.eu-west-1.compute.internal>, relay=outbound.mailhop.org[204.13.248.72]:2525, delay=1.2, delays=0.01/0/0.71/0.5, dsn=5.0.0, status=bounced (host http://outbound.mailhop.org[204.13.248.72] said: 550-root@ip-10-228-106-7.eu-west-1.compute.internal failed recipient 550 verification (in reply to RCPT TO command))
Oct 20 10:43:44 ip-10-228-106-7 postfix/smtp[7796]: 41D4E4032F: to=<root@ip-10-228-106-7.eu-west-1.compute.internal>, relay=outbound.mailhop.org[204.13.248.72]:2525, delay=1.4, delays=0.03/0/0.76/0.61, dsn=5.0.0, status=bounced (host http://outbound.mailhop.org[204.13.248.72] said: 550-root@ip-10-228-106-7.eu-west-1.compute.internal failed recipient 550 verification (in reply to RCPT TO command))
Oct 20 10:43:44 ip-10-228-106-7 postfix/smtp[7798]: 3FF424032E: to=<root@ip-10-228-106-7.eu-west-1.compute.internal>, relay=outbound.mailhop.org[204.13.248.72]:2525, delay=1.4, delays=0.03/0/0.84/0.53, dsn=5.0.0, status=bounced (host http://outbound.mailhop.org[204.13.248.72] said: 550-root@ip-10-228-106-7.eu-west-1.compute.internal failed recipient 550 verification (in reply to RCPT TO command))
Oct 20 10:43:44 ip-10-228-106-7 postfix/qmgr[7778]: 627164030B: removed
Oct 20 10:43:44 ip-10-228-106-7 postfix/qmgr[7778]: 41D4E4032F: removed
Oct 20 10:43:44 ip-10-228-106-7 postfix/qmgr[7778]: 3FF424032E: removed
Oct 20 10:43:48 ip-10-228-106-7 sendmail[7805]: o9KEhmJb007805: from=apache, size=90, class=0, nrcpts=1, msgid=<201010201443.o9KEhmJb007805@ip-10-228-106-7.eu-west-1.compute.internal>, relay=apache@localhost
Oct 20 10:43:48 ip-10-228-106-7 postfix/smtpd[7806]: connect from localhost.localdomain[127.0.0.1]
Oct 20 10:43:48 ip-10-228-106-7 postfix/smtpd[7806]: EDBA94032E: client=localhost.localdomain[127.0.0.1]
Oct 20 10:43:49 ip-10-228-106-7 postfix/cleanup[7802]: EDBA94032E: message-id=<201010201443.o9KEhmJb007805@ip-10-228-106-7.eu-west-1.compute.internal>
Oct 20 10:43:49 ip-10-228-106-7 postfix/qmgr[7778]: EDBA94032E: from=<apache@ip-10-228-106-7.eu-west-1.compute.internal>, size=598, nrcpt=1 (queue active)
Oct 20 10:43:49 ip-10-228-106-7 sendmail[7805]: o9KEhmJb007805: to=********@gmail.com, ctladdr=apache (48/48), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30090, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as EDBA94032E)
Oct 20 10:43:49 ip-10-228-106-7 postfix/smtpd[7806]: disconnect from localhost.localdomain[127.0.0.1]
Oct 20 10:43:50 ip-10-228-106-7 postfix/smtp[7797]: EDBA94032E: to=<********@gmail.com>, relay=outbound.mailhop.org[204.13.248.71]:2525, delay=1.5, delays=0.39/0/1/0.1, dsn=5.0.0, status=bounced (host http://outbound.mailhop.org[204.13.248.71] said: 550 Sender verify failed (in reply to MAIL FROM command))
Oct 20 10:43:50 ip-10-228-106-7 postfix/cleanup[7800]: B31644032B: message-id=<20101020144350.B31644032B@www.parcelspace.com>
Oct 20 10:43:50 ip-10-228-106-7 postfix/qmgr[7778]: B31644032B: from=<>, size=2537, nrcpt=1 (queue active)
Oct 20 10:43:50 ip-10-228-106-7 postfix/bounce[7803]: EDBA94032E: sender non-delivery notification: B31644032B
Oct 20 10:43:50 ip-10-228-106-7 postfix/qmgr[7778]: EDBA94032E: removed
Oct 20 10:43:51 ip-10-228-106-7 postfix/smtp[7796]: B31644032B: to=<apache@ip-10-228-106-7.eu-west-1.compute.internal>, relay=outbound.mailhop.org[204.13.248.72]:2525, delay=1.2, delays=0.01/0/0.68/0.49, dsn=5.0.0, status=bounced (host http://outbound.mailhop.org[204.13.248.72] said: 550-apache@ip-10-228-106-7.eu-west-1.compute.internal failed recipient 550 verification (in reply to RCPT TO command))
Oct 20 10:43:51 ip-10-228-106-7 postfix/qmgr[7778]: B31644032B: removed
Oct 20 10:45:30 ip-10-228-106-7 postfix/scache[7804]: statistics: start interval Oct 20 10:43:43
Oct 20 10:45:30 ip-10-228-106-7 postfix/scache[7804]: statistics: domain lookup hits=0 miss=3 success=0%
I'm sure that my settings in http://main.cf, sasl-passwords, transport are correct for using MailHop Outbound, and that sasl-passwords.db and transport.db are there, but clearly it's not working. Any help much appreciated! Thanks.