Clearing mailq
Kiran Sharma
speedyourmind at yahoo.com
Thu Nov 6 16:09:50 EST 2008
Gurus,
I tried to clear the mail queue but unsuccessful. Solaris 9 sendmail.
I tried cd /var/spool && cp -p mqueue mqueue.orig && cd mqueue && rm *
but now there are more mails then before. mailq shows over 16K messages.
Tried # /usr/sbin/sendmail -q -v
and
# /usr/sbin/sendmail -Ac -q -v
still no luck.
Its a prod server and scare to follow following steps which I found at google.
1. mailq
2. /etc/init.d/sendmail stop
3. cd /var/spool && cp -p mqueue mqueue.orig && cd mqueue && rm *
4. /etc/init.d/sendmail start
More information about the sunmanagers
mailing list