Sometimes a letter that was sent via Sendmail (mail server) returns with a mistake:
Apr 15 19:15:31 myhost sendmail: mATM4O8w58095806: Losing ./qfmATM4O8w58095806: savemail panic
Apr 15 19:15:45 myhost sendmail: mATM4O8w58095806: SYSERR(www): savemail: cannot save rejected email anywhere
At the same time the following might periodically be seen in the logs:
stat=Data format error
This problem usually appears because of non-existent (null) mail address at the time of mail sending or because of non-existent hostname server.
To solve the problem you should indicate the right e-mail. You can edit Administrator’s e-mail in WWW properties tab (field “Administrator’s e-mail) in ISPmanager control board.
This e-mail also should be typed in apache configurations while describing the virtual host:
php_admin_value sendmail_path “/usr/sbin/sendmail -t -i -f email@example.com”
If PHP is used as FastCGI or CGI this string should be typed in the file ~/php-bin/php.ini
sendmail_path = “/usr/sbin/sendmail -t -i -f firstname.lastname@example.org”
How to turn off sender’s e-mail correctness review
By default Sendmail launches from MSP (Message Submission Program). This process launches separately to handle mail turn.
Let us examine the example of Sendmail turning off in FreeBSD system.
Write the string submit.cf in file /etc/make.conf to turn automatic file creating off.
After that, you should delete the file submit.cf and change permissions of the executable file sendmail (set SUID up instead of SGID, that is to set up permissions 4755 instead of 2755) and reboot sendmail.
chmod 4755 /usr/local/sbin/sendmail
Deactivating might be analogically executed on other servers. To cancel creating submit.cf that is being proceeded automatically on CentOS Linux you should just edit file /etc/mail/Makefile.