This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
computing:exim4 [2019/08/12 17:50] – oemb1905 | computing:exim4 [2021/10/30 18:07] – 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 <message id> | ||
+ | exim -Mrm <message id> | ||
+ | exim -Mvh <message id> | ||
+ | exim -bp | awk '/^ *[0-9]+[mhd]/ | ||
- | --- //[[oemb1905@jonathanhaack.com|oemb1905]] | + | --- //[[jonathan@haacksnetworking.com|oemb1905]] |