Sendmail does not send mail

Rackover asked:

I’m setting up a webpage where people can subscribe to a newsletter. Once the form submitted, the PHP page sends a mail using mail().

I’ve installed sendmail in that purpose. But whenever I fire the PHP form, or use the “sendmail” command from a terminal, the recipient never receives anything.

I’ve tested it by sending mails to two addresses for now :

Rackover@live.fr, which is a microsoft live address

rackover@racknet.noip.me, which is a homemade mail server (another server of mine).

But the mail never goes through. It fires without errors, but none of the mailboxes receive it.

Here are the last lines of mail.log after sending one mail to each :

Feb 19 21:47:20 RACKSBERRY sendmail[1937]: w1JLlE3X001937: from=okachad, size=11, class=0, nrcpts=1, msgid=<201802192147.w1JLlE3X001937@RACKSBERRY.local>, relay=okachad@localhost
Feb 19 21:47:20 RACKSBERRY sm-mta[2036]: w1JLlKkf002036: from=<okachad@RACKSBERRY.local>, size=288, class=0, nrcpts=1, msgid=<201802192147.w1JLlE3X001937@RACKSBERRY.local>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 19 21:47:20 RACKSBERRY sendmail[1937]: w1JLlE3X001937: to=rackover@live.fr, ctladdr=okachad (1002/1002), delay=00:00:06, xdelay=00:00:00, mailer=relay, pri=30011, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w1JLlKkf002036 Message accepted for delivery)
Feb 19 21:47:27 RACKSBERRY sendmail[2080]: w1JLlOQd002080: from=okachad, size=13, class=0, nrcpts=1, msgid=<201802192147.w1JLlOQd002080@RACKSBERRY.local>, relay=okachad@localhost
Feb 19 21:47:27 RACKSBERRY sm-mta[2121]: w1JLlRpD002121: from=<okachad@RACKSBERRY.local>, size=298, class=0, nrcpts=1, msgid=<201802192147.w1JLlOQd002080@RACKSBERRY.local>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb 19 21:47:27 RACKSBERRY sendmail[2080]: w1JLlOQd002080: to=rackover@racknet.noip.me, ctladdr=okachad (1002/1002), delay=00:00:03, xdelay=00:00:00, mailer=relay, pri=30013, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w1JLlRpD002121 Message accepted for delivery)
Feb 19 21:49:39 RACKSBERRY sm-mta[25025]: w1INLauV019160: to=<rackover@live.fr>, ctladdr=<okachad@RACKSBERRY.home> (1002/1002), delay=22:28:03, xdelay=00:00:00, mailer=esmtp, pri=12000291, relay=eur.olc.protection.outlook.com., dsn=4.0.0, stat=Deferred: Connection timed out with eur.olc.protection.outlook.com. 
Feb 19 21:49:39 RACKSBERRY sm-mta[25025]: w1INF7xb013470: to=<rackover@racknet.noip.me>, ctladdr=<www-data@RACKSBERRY.home> (33/33), delay=22:34:32, xdelay=00:00:00, mailer=esmtp, pri=12090588, relay=racknet.noip.me., dsn=4.0.0, stat=Deferred: Connection timed out with racknet.noip.me.

(RACKSBERRY is the Netbios name of the server. okachad is the name of the user firing the ‘sendmail’.)

The same thing occurs when firing mail() function from PHP.

I need this mail() to be working as quickly as possible.

What must I check and try next to fix this ?

My answer:


Your server is not allowed to send mail, because of an external firewall placed by whoever provides Internet service to the server. Contact that company for more information and any instructions on how to be unblocked.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.