|
http://securelinuxhosting.com/tech/exim
http://www.webhostingtalk.com/showthread.php?t=623960
http://bradthemad.org/tech/notes/exim_cheatsheet.php
Exim Commands
exim -bpc - Print a count of the messages in the queue
exim -bp - Print a listing of the messages in the queue
exim -M emailID - force delivery of one message
exim -Mvl messageID - View Log for message
exim -Mvb messageID - View Body for message
exim -Mvh messageID - View Header for message
exim -Mrm messageID - ReMove message (no errors sent)
exiqgrep -zi | xargs exim -Mrm - Remove all frozen mails in q
REMOVE MAILS BY ID
exim -v -Mrm (MAIL ID HERE)
LIST QUEDED MAILS
exim -bp
OUTPUT NUMBER OF QUEDED MAILS
exim -bpc
DELETE FROZEN MAILS
exim -bp | awk '$6~"frozen" { print $3 }' | xargs exim -Mrm
DELIVER FORCEFULLY EMAILS
exim -qff -v -C /etc/exim.conf &
FREEZE MAILS FROM SENDER
exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf
REMOVE MAILS FROM SENDER
exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mrm
Remove root mails
exim -bp |grep "hostname" |awk '{print $3}' |xargs exim -Mrm
Forcefully sending mails from a domain
exim -v -Rff domainname.com
Remove all frozen messages:
root@localhost# exiqgrep -z -i | xargs exim -Mrm
Remove all messages older than five days (86400 * 5 = 432000 seconds):
root@localhost# exiqgrep -o 432000 -i | xargs exim -Mrm
Start a queue run:
root@localhost# exim -q -v
Start a queue run for just local deliveries:
root@localhost# exim -ql -v
Remove a message from the queue:
root@localhost# exim -Mrm <message-id> [ <message-id> ... ]
Freeze a message:
root@localhost# exim -Mf <message-id> [ <message-id> ... ]
Thaw a message:
root@localhost# exim -Mt <message-id> [ <message-id> ... ]
Deliver a message, whether it's frozen or not, whether the retry time has been reached or not:
root@localhost# exim -M <message-id> [ <message-id> ... ]
Deliver a message, but only if the retry time has been reached:
root@localhost# exim -Mc <message-id> [ <message-id> ... ]
Force a message to fail and bounce as "cancelled by administrator":
root@localhost# exim -Mg <message-id> [ <message-id> ... ]
Remove all frozen messages:
root@localhost# exiqgrep -z -i | xargs exim -Mrm
Remove all messages older than five days (86400 * 5 = 432000 seconds):
root@localhost# exiqgrep -o 432000 -i | xargs exim -Mrm
Freeze all queued mail from a given sender:
root@localhost# exiqgrep -i -f luser@example.tld | xargs exim -Mf
View a message's headers:
root@localhost# exim -Mvh <message-id>
View a message's body:
root@localhost# exim -Mvb <message-id>
View a message's logs:
root@localhost# exim -Mvl <message-id>
Add a recipient to a message:
root@localhost# exim -Mar <message-id> <address> [ <address> ... ]
Edit the sender of a message:
root@localhost# exim -Mes <message-id> <address>
|