This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:exim4 [2021/07/20 23:29] – oemb1905 | computing:exim4 [2024/12/16 01:32] (current) – oemb1905 | ||
---|---|---|---|
Line 84: | Line 84: | ||
Notice the MAIN_TLS_ENABLE = yes line is added and will this time, survive a service restart because of the localmacros file created above. Next, it is time to symlink your TLS certificate and keypair to the default location for exim4. In my case, I already had Let’s Encrypt set up on this server for my primary domain, so I just used that pair as follows (proceed with caution): | Notice the MAIN_TLS_ENABLE = yes line is added and will this time, survive a service restart because of the localmacros file created above. Next, it is time to symlink your TLS certificate and keypair to the default location for exim4. In my case, I already had Let’s Encrypt set up on this server for my primary domain, so I just used that pair as follows (proceed with caution): | ||
- | cd /etc/exim4 | ||
sudo -i | sudo -i | ||
+ | cd /etc/exim4 | ||
ln -s ../ | ln -s ../ | ||
ln -s ../ | ln -s ../ | ||
Line 181: | Line 181: | ||
rm / | rm / | ||
sysemctl restart exim4.service | sysemctl restart exim4.service | ||
+ | | ||
+ | To delete all frozen emails and/or individually delete/ | ||
+ | |||
+ | exim -bp | awk '/^ *[0-9]+[mhd]/ | ||
+ | |||
+ | To read email body: | ||
+ | |||
+ | exim4 -Mvb <message id> | ||
+ | |||
+ | To view the email header: | ||
+ | |||
+ | exim -Mvh <message id> | ||
+ | |||
+ | TLS can pitch an annoying warning that states "TLS connections will fail. Suggested action: either install a certificate or change tls_advertise_hosts option." | ||
+ | |||
+ | sudo nano / | ||
+ | | ||
+ | Search for "A weaker form" and once you get to that section look for where it states '' | ||
+ | |||
+ | tls_advertise_hosts = | ||
+ | |||
+ | Just so you are clear, it will look like this: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | To stop the relay from barfing when clients with incomplete TLS emails through it, you can do the following on the client sending th email (not on the server/ | ||
+ | |||
+ | sudo nano / | ||
+ | REMOTE_SMTP_SMARTHOST_TLS_VERIFY_HOSTS = !* | ||
+ | systemctl restart exim4 | ||
- | --- //[[jonathan@haacksnetworking.com|oemb1905]] | + | --- //[[alerts@haacksnetworking.org|oemb1905]] |