All the mails which are going from your sendmail is get stored in the following location

/var/spool/mqueue

so for clearing the mailq you just go the following location and delete all the contents under mqueue folder

cd   /var/spool/mqueue/

[root@localhost ~]#  cd /var/spool/mqueue/
You have new mail in /var/spool/mail/root
[root@localhost mqueue]# ls

Post By Editor (2,827 Posts)

Website: →

Connect