User Tools

Site Tools


computing:exim4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
computing:exim4 [2021/04/02 19:47] oemb1905computing: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 ../letsencrypt/live/teacher.codetalkers.club/fullchain.pem exim.crt   ln -s ../letsencrypt/live/teacher.codetalkers.club/fullchain.pem exim.crt
   ln -s ../letsencrypt/live/teacher.codetalkers.club/privkey.pem exim.key   ln -s ../letsencrypt/live/teacher.codetalkers.club/privkey.pem exim.key
Line 158: Line 158:
 Okay! Happy Hacking! Okay! Happy Hacking!
  
-Update: Since the relay is not an incoming mail server and because there are mx records in use at gmailI had to exclude exim4 from looking for domains locally.+Update: If your host shares the domain with an email you use elsewheremake sure to exclude the main local domains and comment that out.
      
   sudo nano /etc/exim4/exim4.conf.template   sudo nano /etc/exim4/exim4.conf.template
   domainlist local_domains =   domainlist local_domains =
 +  
 +There is a big mistake above, where I specify for exim4 to listen to nothing instead of everything.  Here is what you need to change:
 +
 +  sudo nano /etc/exim4/update-exim4.conf.conf
 +  dc_local_interfaces='::::0:0.0.0.0'
  
 On major system upgrades, exim4 often gets hosed.  Specifically, you need to fully remove and purge it, and then when you reinstall it, the command `dpkg-reconfigure exim4-config` has no ncurses output and just fails.  Here is what I found that works: On major system upgrades, exim4 often gets hosed.  Specifically, you need to fully remove and purge it, and then when you reinstall it, the command `dpkg-reconfigure exim4-config` has no ncurses output and just fails.  Here is what I found that works:
Line 176: Line 181:
   rm /var/log/exim4/*   rm /var/log/exim4/*
   sysemctl restart exim4.service   sysemctl restart exim4.service
 +  
 +To delete all frozen emails and/or individually delete/read.
 +
 +  exim -bp <message id>
 +  exim -Mrm <message id>
 +  exim -Mvh <message id>
 +  exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
  
- --- //[[jonathan@haacksnetworking.com|oemb1905]] 2021/04/02 12:47//+ --- //[[jonathan@haacksnetworking.com|oemb1905]] 2021/10/30 12:05//
computing/exim4.txt · Last modified: 2022/08/20 06:11 by oemb1905