Last active
October 19, 2015 17:33
-
-
Save cdolek/e791429ae2890b3573d4 to your computer and use it in GitHub Desktop.
exim: useful stuff for managing stuck emails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias exim_summary="exim -bp | exiqsumm" | |
alias exim_log="tail -f /var/log/exim4/mainlog" | |
alias exim_force_send="exiqgrep -i | xargs exim -M" | |
alias exim_force_send_frozen="exiqgrep -zi | xargs exim -M" | |
# delete messages from the mail queue by receiver email address | |
exim -bp|grep "[email protected]"| awk {'print $3'}| xargs exim -Mrm | |
# remove all frozen messages | |
exiqgrep -z -i | xargs exim -Mrm | |
# remove all messages from queue | |
exim -bp | exiqgrep -i | xargs exim -Mrm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment