If you ever felt the need of flushing the sendmail queue

How to flush sendmail queue under linux sendmail mailq command in linux how to flush mail queue in sendmail under linux
If u r worried about sendmail pending mail flush do the following 2 things.

1) manually method –> delete /var/spool/mail/*.* files in this dir –> delete /var/mqueue/*.* files
then check if all mail gone using mailq command. all mail will be deleted.

2) using command:
use simple command sendmail -v -q in root prompt. it will flush allpending mails. rest to confirm u can run mailq command if all arereally gone !!….

3) if u want particular domain or user or recepitience mail to delete use this command
sendmail -qS -v it will delete all mail from *
sendmail -qR -v it will delete all mail from recepient of

Popular posts from this blog

Password Expiry notification for the users in zimbra 8.x within 7 Days for the email users

Zimbra backup open source for zimbra 8.x for 7 Days