Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes |
informatique:reseau:exim4 [04/06/2020 17:42] – [Exim4] cyrille | informatique:reseau:exim4 [12/06/2020 20:31] – [Helpful Exim Commands] exim4 cyrille |
---|
* [[/informatique/spam|/informatique/spam]] pour de la "bonne" configuration | * [[/informatique/spam|/informatique/spam]] pour de la "bonne" configuration |
| |
| Documentation: |
* [[http://bradthemad.org/tech/notes/exim_cheatsheet.php|Exim Cheatsheet]] | * [[http://bradthemad.org/tech/notes/exim_cheatsheet.php|Exim Cheatsheet]] |
| * [[https://www.exim.org/exim-html-current/doc/html/spec_html/ch-main_configuration.html|main configuraiton]] |
* [[https://manpages.debian.org/stretch/exim4-base/exim.8.en.html|exim4-base manpage]] | * [[https://manpages.debian.org/stretch/exim4-base/exim.8.en.html|exim4-base manpage]] |
===== Tips & Tricks ===== | ===== Tips & Tricks ===== |
| |
<code> | <code> |
/usr/sbin/exim -M email-id => Force delivery of one message | exim4 -M email-id => Force delivery of one message |
/usr/sbin/exim -qf => Force another queue run | exim4 -qf => Force another queue run |
/usr/sbin/exim -qff => Force another queue run and attempt to flush the frozen message | exim4 -qff => Force another queue run and attempt to flush the frozen message |
/usr/sbin/exim -Mvl messageID => View the log for the message | exim4 -Mvl messageID => View the log for the message |
/usr/sbin/exim -Mvb messageID => View the body of the message | exim4 -Mvb messageID => View the body of the message |
/usr/sbin/exim -Mvh messageID => View the header of the message | exim4 -Mvh messageID => View the header of the message |
/usr/sbin/exim -Mrm messageID => Remove message without sending any error message | exim4 -Mrm messageID => Remove message without sending any error message |
/usr/sbin/exim -Mg messageID => Giveup and fail message to bounce the message to the Sender | exim4 -Mg messageID => Giveup and fail message to bounce the message to the Sender |
| |
/usr/sbin/exim -bpr | grep “<” | wc -l =>Number of emails in the que | exim4 -bpr | grep “<” | wc -l =>Number of emails in the que |
/usr/sbin/exim -bpr | grep frozen | wc -l => How many Frozen mails on the queue | exim4 -bpr | grep frozen | wc -l => How many Frozen mails on the queue |
| |
# Deleteing Frozen Messages | # Deleteing Frozen Messages |
$ sudo /usr/sbin/exim -bpr | grep frozen | awk {'print $3'} | xargs sudo /usr/sbin/exim -Mrm | $ sudo exim4 -bpr | grep frozen | awk {'print $3'} | xargs sudo /usr/sbin/exim -Mrm |
</code> | </code> |
| |