exim4:managing_emails
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
exim4:managing_emails [2016/11/01 12:22] – created peter | exim4:managing_emails [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Exim4 - Managing emails ====== | ====== Exim4 - Managing emails ====== | ||
- | ===== Removing Bad Mail ===== | + | ===== Removes Nobody |
<code bash> | <code bash> | ||
- | for i in `exiqgrep -i -f nobody`; do exim -Mrm $i; done >> Removes Nobody Mail | + | for i in `exiqgrep -i -f nobody`; do exim -Mrm $i; done |
+ | </code> | ||
- | for i in `exiqgrep -i -o 259200`; do exim -Mrm $i; done >> Removes Mail older than 3 Days | ||
- | for i in `exiqgrep -i -f “^<> | + | ===== Removes Mail older than 3 Days ===== |
+ | |||
+ | <code bash> | ||
+ | for i in `exiqgrep -i -o 259200`; do exim -Mrm $i; done | ||
</ | </ | ||
+ | |||
+ | ===== Removes Mail with weird Characters (Spam) ===== | ||
+ | |||
+ | <code bash> | ||
+ | for i in `exiqgrep -i -f " | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Delete mails from a particular domain ===== | ||
+ | |||
+ | <code bash> | ||
+ | for i in `exiqgrep -i -f domain.com`; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Delete mails to a particular domain ===== | ||
+ | |||
+ | <code bash> | ||
+ | for i in `exiqgrep -i -r domain.com`; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Flush the entire Mail queue ===== | ||
+ | |||
+ | <code bash> | ||
+ | for i in `exiqgrep -i -f `; do exim -Mrm $i; done | ||
+ | exim -bp | exiqgrep -i | xargs exim -Mrm | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Run Mail queue ===== | ||
+ | |||
+ | <code bash> | ||
+ | runq -qqff& | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Who is having large number of emails? ===== | ||
+ | |||
+ | <code bash> | ||
+ | exim -bp | exiqsumm | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== To check message header ===== | ||
+ | |||
+ | <code bash> | ||
+ | exim -Mvh messageid | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== To check message content ===== | ||
+ | |||
+ | <code bash> | ||
+ | exim -Mvb messageid | ||
+ | </ |
exim4/managing_emails.1478002960.txt.gz · Last modified: 2020/07/15 09:30 (external edit)