Exim: Difference between revisions

From wiki
Jump to navigation Jump to search
Created page with "Basic MTA (Mail Transfer Agent) The configuration can be modified in /etc/exim4/. These lines need to be modified <syntaxhighlight lang=config> dc_eximconfig_configtype='..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Linux/Unix]]
Basic MTA ([[Mail]] Transfer Agent)
Basic MTA ([[Mail]] Transfer Agent)


The configuration can be modified in /etc/exim4/. These lines need to be modified
The configuration can be modified in /etc/exim4/update-exim4.conf.conf. These lines need to be modified:
<syntaxhighlight lang=config>
dc_eximconfig_configtype='satellite'
dc_other_hostnames='<your hostname>'


dc_readhost='<your domainname>'
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


dc_smarthost='<your mailserver>'
;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>
dc_hide_mailname='true'
:Force reprocessing messageID
 
 
</syntaxhighlight>
Then run update-exim4.conf then the final config will be put in /etc/exim4/conf.d

Latest revision as of 18:08, 9 June 2024

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