Sendmail

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 test.com it will delete all mail from *@test.com
sendmail -qR -v gmail.com it will delete all mail from recepient of gmail.com.

Popular posts from this blog

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

Hacking