ABHIONLINUX
Site useful for linux administration and web hosting

2009/07/30

Exim Commands

exim -bp
mailq --- The mailq is relevant as it gives your the email IDs.
exim -M emailID
force delivery of one message
exim -qf
Force another queue run
exim -qff
Force another queue run and attempt to flush frozen messages
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)
exim -Mg messageID
Give up and fail message, message bounces to sender





----------------------------

exim -bp|grep name ---- show the mail in queue for $name
exim -Mvh msgid ---- View message header
exim -Mvb msgid ---- View message body
exim -M msgid ---- Force delivery of message
exim -v -M msgid ---- View the transact of message

Force delivery of one message
exim -M email-id

Force another queue run
exim -qf

Force another queue run and attempt to flush the frozen message
exim -qff

View the log for the message
exim -Mvl msgid

View the body of the message
exim -Mvb msgid

View the header of the message
exim -Mvh msgid

Remove message without sending any error message
exim -Mrm msgid

Giveup and fail message to bounce the message to the Sender
exim -Mg msgid

How much mail in the queue?
exim -bpr | grep "<" | wc -l


How many Frozen mails in the queue
exim -bpr | grep frozen | wc -l


Deleteing Frozen Messages
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm


To find out, how many messages are there in the mail queue:
exim -bpc

To check the mails in the queue:
exim -bp

To force exim update:
/scripts/eximup --force

Hope this helps
______________________________________

No comments:

Post a Comment