User Tools

Site Tools


computing:mailclient

Differences

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

Link to this comparison view

Next revision
Previous revision
computing:mailclient [2026/03/29 15:37] – created oemb1905computing:mailclient [2026/03/29 15:41] (current) oemb1905
Line 1: Line 1:
-#mini Ryzen #1 at workcalled remote.haacksnetworking.org+Use this for personal machines behind someone else's LAN. It turns exim into a MUA instead of a MTA. That istt uses your remote self-hosted smtp instead of sending directly.
  
 +<code>
 sudo apt install exim4 sudo apt install exim4
 sudo nano /etc/exim4/update-exim4.conf.conf sudo nano /etc/exim4/update-exim4.conf.conf
Line 23: Line 24:
 MAIN_TLS_ADVERTISE_HOSTS = MAIN_TLS_ADVERTISE_HOSTS =
 REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS = * REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS = *
 +MAIN_HARDCODE_PRIMARY_HOSTNAME = user.domain.com
 +MAIN_LOCAL_DOMAINS =
 +
  
 sudo update-exim4.conf sudo update-exim4.conf
Line 30: Line 34:
 sudo tail -f /var/log/exim4/mainlog sudo tail -f /var/log/exim4/mainlog
  
 +</code>
  
------------------------------------+Here's a copy pastable version:
  
 +<code>
 sudo apt install exim4 sudo apt install exim4
 cat << 'EOF' | sudo tee /etc/exim4/update-exim4.conf.conf cat << 'EOF' | sudo tee /etc/exim4/update-exim4.conf.conf
Line 56: Line 62:
 MAIN_TLS_ADVERTISE_HOSTS = MAIN_TLS_ADVERTISE_HOSTS =
 REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS = * REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS = *
 +MAIN_HARDCODE_PRIMARY_HOSTNAME = user.domain.com
 +MAIN_LOCAL_DOMAINS =
 EOF EOF
  
Line 64: Line 72:
 echo "Test with:" echo "Test with:"
 echo 'echo "Test from $(hostname)" | mail -s "Exim4 test from $(hostname)" test@gmail.com' echo 'echo "Test from $(hostname)" | mail -s "Exim4 test from $(hostname)" test@gmail.com'
 +</code>
  
  --- //[[alerts@haacksnetworking.org|oemb1905]] 2026/03/29 15:33//  --- //[[alerts@haacksnetworking.org|oemb1905]] 2026/03/29 15:33//
computing/mailclient.1774798620.txt.gz · Last modified: by oemb1905