User Tools

Site Tools


linux:general:mailq

Remove mails from mailqueue

Postfix

Remove mails

service postfix stop
postsuper -d ALL 
mailq 
service postfix start

Sendmail

Remove mails

Remove some mails:

service sendmail stop
rm /var/spool/mqueue/*
rm /var/spool/mqueue-client/*
mailq 
service sendmail start

Remove alot of mails:

service sendmail stop
cd /var/spool/mqueue-client/
for i in * ; do rm $i ; done 
cd /var/spool/mqueue/
for i in * ; do rm $i ; done 
mailq 
service sendmail start

logflood in syslog and mail

linux/general/mailq.txt · Last modified: 2018/05/28 14:39 by lunetikk