There is a long list of outgoing messages that I have sent, in my sent mail box. I want these messages to be cleared from there. How can I clear this send mail queue ? Can anybody give any ideas regarding same.....plz help
thanks
There is a long list of outgoing messages that I have sent, in my sent mail box. I want these messages to be cleared from there. How can I clear this send mail queue ? Can anybody give any ideas regarding same.....plz help
thanks
If you are using Linux operating system, you can clear the sendmail queue by the following ways -
- manually:
delete /var/spool/mail/*.* files in this dir –> delete /var/mqueue/*.* files
all mail will be deleted. then, using mailq command, confirm whether all the mails are cleared
- using command:
use simple command sendmail -v -q in root prompt. it will clear all pending mails. you can also confirm by running mailq command
If you are interested in deleting particular domain or user or recepitience mail, use this command
sendmail -qS -v test.com - deletes all mail from *@test.com
sendmail -qR -v hotmail.com - deletes all mail from recepient of hotmail
- stop sendmail
- delete all the files in /var/spool/mqueue and /var/spool/clientmqueue
- restart sendmail
Thanks a lot for providing the useful information.
Is there any sofware available that on executing automatically clears all the unwanted sendmails from the queue.....whenever i wish to clear the queue....
Bookmarks