Can an user do it for himself, to flush ?
Not unless the sendmail binary is setuid for elavated priviledges, which you don't really want to do. Other MTA's might allow for user mail flush, but I don't know.
Most distros that use sendmail have a flag/option set to queue (flush) the mail spool directories on a regular basis like 30 minutes, example -q30m
. List your processes and check sendmail:
# ps axe | grep sendmail
... Queue runner@00:30:00 for /var/spool/clientmqueue
The output will look similar to this if sendmail daemon is running with a queue flag set, 00:30:00 means 30 minutes.
If you don't know already, you can manually check ( -bp
) and flush ( -q
) the mail spool:
# sendmail -bp
output shows either empty or messages
# sendmail -q
If you've got something stuck in the queue, then you'll probably have to do manual cleanup, but that's for another day.