Exim

From wiki
Jump to navigation Jump to search

Basic MTA (Mail Transfer Agent)

The configuration can be modified in /etc/exim4/update-exim4.conf.conf. These lines need to be modified:

dc_eximconfig_configtype='satellite'
dc_other_hostnames='<your hostname>'
dc_readhost='<your domainname>'
dc_smarthost='<your mailserver>'
dc_hide_mailname='true'

Then run update-exim4.conf. This will put the final config in /etc/exim4/conf.d

exim4 -bt user@domain.tld
Show how mail to user@domain.tld will be routed
exim4 -bpr | grep "<" |awk '{print $3}'|while read mailid; do exim4 -Mvh ${mailid}|grep Subject; done
Show the subject of all emails in the queue
exim4 -M <messageID>
Force reprocessing messageID