Error: Mail sent by user nobody being discarded... Print

  • 22

Outgoing “mail sent by user nobody being discarded due to sender restrictions” means we do not allow your scripts to send e-mails from our servers when your script does not properly identify the sender.

PHP scripts must explicitly declare the sender in an additional heading. This is well noted in the online PHP manual. If you fail to declare a sender heading, PHP on our server will set the sender to: nobody@cpxx.abhost.net. Since our policies do not allow ‘nobody’ to send out mail, the offending e-mail is discarded and not sent out. Remember that the sender heading (rfc821, now rfc5321) is not the same thing as the message from header (rfc822, now rfc5322).

This error is caused when your PHP script uses the built-in PHP function mail(). This function works fine in a single user environment, but is a security hole on a shared server. To send e-mails on our shared servers, your PHP script must connect to a SMTP mail server and authenticate itself with an e-mail user name and password.

If your PHP application can be configured, select SMTP as the e-mail method. Provide your SMTP server host name with port 587. SMTP Auth should be set to true. Furnish your e-mail user name (often your full e-mail address) and password.

If you are writing your own PHP scripts, you may find it easy to use PHPMailer or another quality pre-written script. Please remember that you are responsible for any code that you upload to our servers. Also, do not forget to properly configure your e-mail headers. A sent from or envelope from header is required. If you are receiving 'mail sent by user nobody' errors then you have not provided an 'envelope from' header.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution