Exim4Cheatsheet » History » Version 1
Andreas Kohlbecker, 02/20/2018 02:44 PM
1 | 1 | Andreas Kohlbecker | # Exim4Cheatsheet |
---|---|---|---|
2 | |||
3 | exim4 Cheatsheet |
||
4 | |||
5 | Show mails in queue |
||
6 | |||
7 | ~~~ |
||
8 | /usr/local/atmail/mailserver/bin/exim -bp |
||
9 | ~~~ |
||
10 | |||
11 | Show a table overview of the mails in the queue |
||
12 | |||
13 | ~~~ |
||
14 | /usr/local/atmail/mailserver/bin/exim -bp | /usr/local/atmail/mailserver/bin/exiqsumm |
||
15 | ~~~ |
||
16 | |||
17 | Show the number of mails in the queue |
||
18 | |||
19 | ~~~ |
||
20 | /usr/local/atmail/mailserver/bin/exim -bpc |
||
21 | ~~~ |
||
22 | |||
23 | Deliver local mails |
||
24 | |||
25 | ~~~ |
||
26 | /usr/local/atmail/mailserver/bin/exim -v -M {MAIL ID} |
||
27 | ~~~ |
||
28 | |||
29 | Deliver all mails in queue as far as possible |
||
30 | |||
31 | ~~~ |
||
32 | /usr/local/atmail/mailserver/bin/exim -q |
||
33 | ~~~ |
||
34 | |||
35 | Deliver all mails in queue as far as possible (verbose mode) |
||
36 | |||
37 | ~~~ |
||
38 | /usr/local/atmail/mailserver/bin/exim -qff -v |
||
39 | ~~~ |
||
40 | |||
41 | Deliver frozen mail |
||
42 | |||
43 | ~~~ |
||
44 | /usr/local/atmail/mailserver/bin/exim -Mt {MAIL ID} |
||
45 | ~~~ |
||
46 | |||
47 | Delete all frozen mails |
||
48 | |||
49 | ~~~ |
||
50 | /usr/local/atmail/mailserver/bin/exim -bp | awk '/frozen/{print "/usr/local/atmail/mailserver/bin/exim -Mrm "$3}' | /bin/sh |
||
51 | ~~~ |
||
52 | |||
53 | Unfreeze all frozen mails |
||
54 | |||
55 | ~~~ |
||
56 | /usr/local/atmail/mailserver/bin/exim -bp | awk '/frozen/{print "/usr/local/atmail/mailserver/bin/exim -Mt "$3}' | /bin/sh |
||
57 | ~~~ |
||
58 | |||
59 | Delete specific mail from queue |
||
60 | |||
61 | ~~~ |
||
62 | /usr/local/atmail/mailserver/bin/exim -Mrm {MAIL ID} |
||
63 | ~~~ |
||
64 | |||
65 | Delete mails older than 10 days |
||
66 | |||
67 | ~~~ |
||
68 | /usr/local/atmail/mailserver/bin/exim -bp | grep ‘[0-9][0-9]d ‘ | awk ‘{print $3}’ | xargs /usr/local/atmail/mailserver/bin/exim -Mrm |
||
69 | ~~~ |