This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:exim4 [2021/04/02 18:49] – 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 158: | Line 158: | ||
Okay! Happy Hacking! | Okay! Happy Hacking! | ||
- | Update: | + | Update: |
| | ||
sudo nano / | sudo nano / | ||
domainlist local_domains = | domainlist local_domains = | ||
+ | | ||
+ | There is a big mistake above, where I specify for exim4 to listen to nothing instead of everything. | ||
+ | |||
+ | sudo nano / | ||
+ | dc_local_interfaces=':::: | ||
On major system upgrades, exim4 often gets hosed. | On major system upgrades, exim4 often gets hosed. | ||
Line 169: | Line 174: | ||
sudo dpkg-reconfigure exim4-config | sudo dpkg-reconfigure exim4-config | ||
| | ||
- | Rebuilding again today lol. | + | Rebuilding again today lol. |
+ | |||
+ | rm / | ||
+ | rm / | ||
+ | rm / | ||
+ | rm / | ||
+ | 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]] |