Troubleshooting email sent issues from scripts in Sendmail

From ISPWiki

Jump to: navigation, search

Customizing Sendmail

Sometimes the Sendmail server fails to send an email and returns the error:

Feb 28 22:04:24 myhost sendmail[5806]: mATM4O8w58065806: Losing ./qfmATM4O8w58065806: savemail panic
Feb 28 22:04:24 myhost sendmail[5806]: mATM4O8w58065806: SYSERR(www): savemail: cannot save rejected email anywhere

The logs may contain the following error as well:

stat=Data format error

This may happen due to invalid server hostname or e-mail address.

To resolve the problem go to ISPmanager-> the WWW domains module - > "Create new administrator" to provide a valid e-mail address in the "E-mail administrator" field.

When specifying the address in the Apache configuration file in the virtual host's description:

 php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f"

If you are using PHP as CGI or as FastCGI, you need to specify the record in the ~/php-bin/php.ini file

sendmail_path = "/usr/sbin/sendmail -t -i -f"

Disabling verification of a sender's address

Sendmail runs from Message Submission Program by default (MSP). This is a standalone process for an email queue processing.

Consider the example on FreeBSD

In the /etc/make.conf file add the line that disables automatic creation of the file


Delete the file, edit access privileges for the sendmail file (change SGID into SUID bit, i.e. set privileges 4755 instead of 2755) and restart sendmail

cd /etc/mail
make stop
chmod 4755 /usr/local/sbin/sendmail
make start

Follow this procedure to disable verification on other systems. For example, on CentOS Linux you need to disable automatic creation of by editing the /etc/mail/Makefile file.

Was this helpful? Yes | No
Personal tools