Exim (Mailserver minimal): Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „= Exim4 Minimal-Setup (lokale Zustellung) = * Installation apt install exim4 mailutils -y * Konfiguration schreiben cat > /etc/exim4/update-exim4.conf.conf…“)
 
Zeile 1: Zeile 1:
 
= Exim4 Minimal-Setup (lokale Zustellung) =
 
= Exim4 Minimal-Setup (lokale Zustellung) =
  
* Installation
+
* apt install exim4 mailutils -y
apt install exim4 mailutils -y
 
  
* Konfiguration schreiben
+
* cat > /etc/exim4/update-exim4.conf.conf << 'EOF'
cat > /etc/exim4/update-exim4.conf.conf << 'EOF'
 
 
dc_eximconfig_configtype='local'
 
dc_eximconfig_configtype='local'
 
dc_other_hostnames='lab.int'
 
dc_other_hostnames='lab.int'
Zeile 21: Zeile 19:
 
EOF
 
EOF
  
* Konfiguration aktivieren
+
* update-exim4.conf
update-exim4.conf
+
* systemctl restart exim4
systemctl restart exim4
+
* systemctl status exim4 --no-pager
 
+
* echo "Testmail" | mail -s "Exim läuft" root
* Dienst prüfen
+
* mail
systemctl status exim4 --no-pager
+
* journalctl -u exim4 -n 20 --no-pager
 
+
* less /var/mail/root
* Testmail senden
 
echo "Testmail" | mail -s "Exim läuft" root
 
 
 
* Mails anzeigen
 
mail
 
 
 
* Journal prüfen
 
journalctl -u exim4 -n 20 --no-pager
 
 
 
* Mailbox prüfen
 
less /var/mail/root
 
 
 
= Ergebnis =
 
* Der Dienst exim4 läuft lokal ohne DNS- oder Smarthost-Abhängigkeiten.
 
* Alle Mails an lokale Benutzer werden unter /var/mail/<user> abgelegt.
 
* Mails können mit dem Kommando 'mail' gelesen werden.
 

Version vom 10. November 2025, 18:47 Uhr

Exim4 Minimal-Setup (lokale Zustellung)

  • apt install exim4 mailutils -y
  • cat > /etc/exim4/update-exim4.conf.conf << 'EOF'

dc_eximconfig_configtype='local' dc_other_hostnames='lab.int' dc_local_interfaces='127.0.0.1 ; ::1 ; 10.20.10.11' dc_readhost= dc_relay_domains= dc_minimaldns='false' dc_relay_nets= dc_smarthost= CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname= dc_mailname_in_oh='true' dc_localdelivery='mail_spool' EOF

  • update-exim4.conf
  • systemctl restart exim4
  • systemctl status exim4 --no-pager
  • echo "Testmail" | mail -s "Exim läuft" root
  • mail
  • journalctl -u exim4 -n 20 --no-pager
  • less /var/mail/root