The  mail sent by nobody is usually restricted in most of the server in order to prevent spamming activity.

In most of the CMS, the mail functions will be handled by the PHP scripts which has the ownership of nobody.

You can see the following snippet present in the exim main log if that particular restriction is enabled in the server.

root@x3 [/home/pgnowonl/public_html]# grep 1RsSjE-0030Z3-0w /var/log/exim_mainlog
2012-02-01 13:27:32 1RsSjE-0030Z3-0w <= nobody@abc.com U=nobody P=local S=1745
2012-02-01 13:27:32 1RsSjE-0030Z3-0w ** hemanth.presence@gmail.com R=checkspam2: Mail sent by user nobody being discarded due to sender restrictions in WHM->Tweak Settings
2012-02-01 13:27:32 1RsSjE-0030Z5-1n <= <> R=1RsSjE-0030Z3-0w U=mailnull P=local S=2620
2012-02-01 13:27:32 1RsSjE-0030Z3-0w Completed

You can disable it by accessing your WHM.

WHM >> Tweak Settings

click on off in the option ‘prevent nobody to send mail’.

Prevent “nobody” from sending mail [?]
Prevent the user “nobody” from sending out mail to remote addresses
(PHP and CGI scripts generally run as “nobody” if you are using mod_php or have Suexec disabled.)

Save this settings and there won’t be any problem in sending mails from ‘nobody’.

That’s the Fix. 🙂 🙂

Leave a Reply