Cleans up the sendmail queue for periodic housekeeping.
/usr/lib/smdemon.cleanu
The smdemon.cleanu command is a shell procedure that cleans up the sendmail command queue and maintains the /var/spool/mqueue/log file.
To enable the smdemon.cleanu command, you must remove the comment statement by deleting the # character from the beginning of the smdemon.cleanu line in the /var/spool/cron/crontabs/root file. If the /var/spool/mqueue directory does not exist, do not change the /var/spool/cron/crontabs/root file.
To run the smdemon.cleanu procedure automatically, edit the /var/spool/cron/crontabs/root file and delete the # (comment character) from the beginning of the smdemon.cleanu line as follows:
# ulimit 5000; /usr/lib/smdemon.cleanu > /dev/null
Item | Description |
---|---|
/var/spool/cron/crontabs/root | Schedules when the smdemon.cleanu command will run. |
/var/spool/mqueue | Contains the log file and temporary files associated with the message in the mail queue. |