exim -bV
tests the configuration, shows some summery
exim -bt <address>
simulates the processing of the given address
exim -v <address>
gives the option to directly pass a message to exim (mo MTA). -v is to see everything exim is doing on the stderr. Headers go per line, eg. From: me@here.org
The following adds a SPAM tag to the subject line:[1]
headers_add "New-Subject: SPAM: $h_subject:"headers_remove subjectneaders_add "Subject: $h_new-subject:" headers_remove new-subject
To summerize the unsend messages from the mailq use exim -bpu | exiqsumm
(-bp to show all)
Remove all frozen/unsent messages in one line: exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm"; $3}' | sh
. There should be a shorter one using exiqgrep, but I cannot figure it out right now. [1]
Testing the rewrite (-brw <address>
) or retry rules (-brt <address [short | long]>|<domain>
)
To test whether exim4 is configured properly (or any other mail server) abuse.net gives a relay test page. Also to decide how the confiuration will basically be done, a good starting point is delivered with the exim package: /usr/share/doc/exim4-config/README.Debian.gz
(what a surprise 😉 )
Also, the wiki of exim.org seams a good securing resource. But that has to wait a few more hours because of humanly wants at this hour.