How to clear mailq in your Linux box

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


One Response to “How to clear mailq in your Linux box”


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>