savemail panic
Posted on June 12, 2006
Recently I get a lots of “Savemail Panic” errors in my server log files(I used to received Logwatch email daily).
So what is “savemail panics”?
After check with ‘my friend’ - Google and found that “[tag]savemail panics[/tag]” occur when [tag]Sendmail[/tag] is unable to deliver a bounced message to the [tag]postmaster[/tag] alias. After 5 days of failed delivery (by default), Sendmail will bounce email to the postmaster alias. If this alias is not properly configured, Sendmail will have a savemail panic: it will not attempt future delivery of the mail, but the message remains in the mail queue directory for examination by the system administrator.
To diagnose the cause of a savemail panic, first please make sure you have the following entries in /etc/aliases:
*Basic system aliases — these MUST be present
MAILER-DAEMON: postmaster
postmaster: root
root: myusername (if you have additional line like this, please make sure you have username: myusername in your system).
If you make any changes on /etc/alias file, please do run “newalias” command to make it activate.
For testing purpose, you can run “cat /etc/hosts |mail root” or “cat /etc/hosts | mail postmaster” and monitor your emails log file by running command “tail -f /var/log/maillog” and “tail -f /var/spool/mail/root”.
The following commands will delete messages preserved by a savemail panic (using multiple mail queues):
for queue_dir in q1 q2 q3 q4 q5
do
cd /var/spool/mqueue/$queue_dir
for i in `ls Qf* | cut -c3-`
do
rm *$i
done
done
The following commands will delete messages preserved by a savemail panic (using a single mail queue):
cd /var/spool/mqueue/$queue_dir
for i in `ls Qf* | cut -c3-`
do
rm *$i
done
Good Luck! Your problem solved
Possibly Related Posts:
- I decided to CHANGE
- Bulan Ramadan
- Why Telnet Not Working From Different Network
- Official Comment From Maxis Broadband?
- Edison Chen is back!
Comments
Leave a Reply