This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:exim4 [2019/08/12 17:50] – 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 150: | Line 150: | ||
sudo systemctl restart exim4 | sudo systemctl restart exim4 | ||
- | echo "Hi Relay Server, I am testing you" | mail -s " | + | echo "Hi Relay Server, I am testing you" | mail -s " |
If everything was successful, you should get some log output like this: | If everything was successful, you should get some log output like this: | ||
Line 156: | Line 156: | ||
{{ : | {{ : | ||
+ | Okay! Happy Hacking! | ||
+ | Update: If your host shares the domain with an email you use elsewhere, make sure to exclude the main local domains and comment that out. | ||
+ | | ||
+ | sudo nano / | ||
+ | domainlist local_domains = | ||
+ | | ||
+ | There is a big mistake above, where I specify for exim4 to listen to nothing instead of everything. | ||
- | Okay! Happy Hacking! | + | sudo nano / |
+ | dc_local_interfaces=':::: | ||
+ | |||
+ | On major system upgrades, exim4 often gets hosed. | ||
+ | |||
+ | sudo mv /etc/exim4 / | ||
+ | sudo apt-get -o Dpkg:: | ||
+ | sudo dpkg-reconfigure exim4-config | ||
+ | |||
+ | Rebuilding again today lol. Messages won't send from clients using the relay. | ||
+ | |||
+ | 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 | ||
- | --- //[[oemb1905@jonathanhaack.com|oemb1905]] | + | --- //[[alerts@haacksnetworking.org|oemb1905]] |