- Joined
- Feb 2, 2015
- Messages
- 37
- Points
- 0
Exim is a good SMTP Server, but sometimes you have to perform to manage the queue in the case, users send too many emails, or spam making overload on your mail server.
Show list of email in Mail Queue:
Delete all emails in Queue:
Send all emails in Queue:
Just watch list status emails are Frozen:
Delete all emails in the Frozen status:
or
Just delete the email with Frozen status has more than 1 day:
Show list of email in Mail Queue:
Code:
exim -bp
Code:
Delete a mail in Queue:
Code:
exim -Mrm {message-id}
Code:
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
Code:
/usr/sbin/exim -bp |awk '{print $3}' | xargs -n 1 -P 40 /usr/sbin/exim -v -M
Code:
exim -bpr | grep frozen | wc -l
Code:
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm
Code:
exiqgrep -z -i | xargs exim -Mrm
Code:
exiqgrep -zi -o 86400