About logs:
Exim check run time configuration:
# exim -bV
Exim check configuration values:
# exim -bP
OR
# grep -r 'PARAM' /etc/exim*
Search spammer by subject:
grep -o 'T=.*>' /var/log/exim/mainlog | sort | uniq -c | sort -n
Search who spam to hotmail, outlook, live.com:
#DirectAdmin egrep 'hotmail|outlook|live.com' /var/log/exim/mainlog | grep 'Queued mail for delivery' | grep -o 'F=<[^>]*' | sort | uniq -c | sort -n #cpanel / whm egrep 'hotmail|outlook|live.com' /var/log/exim_mainlog | grep 'Queued mail for deliver' | grep -o '=>.* R'
Search who mostly send to remote servers:
grep 'T=remote_smtp' /var/log/exim/mainlog | grep -o 'F=<.*>' | sort | uniq -c | sort -n
Remove messages from queue by domain:
# exim -bp | awk /domain/{'print $3'} | xargs exim -Mrm
Remove all messages from queue:
# exim -bp | exiqgrep -i | xargs exim -Mrm
service exim stop; /usr/sbin/exim -bd -d+all
exim -be 'string'
eximstats /var/log/exim/mainlog | less
Install swaks (yum, apt, sources, etc…)
swaks --to receiver@remotedomain.tld \ --from=test@domain.tld \ --auth \ --auth-user=test@domain.tld \ --auth-password=no-way:P \ --server mail.domain.tld
To router definition add:
local_part_suffix = +* : -* : _* local_part_suffix_optional
More info: https://wiki.debian.org/Exim#Email_Sub-addressing_.28plus_signs_like_Gmail.29