Postfix: Unterschied zwischen den Versionen

Aus CodicaTipps
Zur Navigation springen Zur Suche springen
Zeile 21: Zeile 21:
 
   smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
 
   smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
 
   smtp_tls_security_level = may
 
   smtp_tls_security_level = may
 +
  sender_canonical_maps = hash:/etc/postfix/sender_canonical
  
 
Passwortdatei <code>/etc/postfix/sasl_password</code>
 
Passwortdatei <code>/etc/postfix/sasl_password</code>

Version vom 16. Juni 2015, 20:25 Uhr

Siehe auch Mail unter Linux#SMTP-Server

Einrichten von Postfix zum Versenden über Mail-Provider arcor.de

Installation:[1]

 sudo aptitude install postfix libsasl2-modules bsd-mailx 

Konfiguration

 sudo dpkg-reconfigure postfix
  • System: Satellitensystem
  • Eigene Domain: eigenerserver.de oder ein anderer frei wählbarer Name (unten wird arcor-Adresse dann ausgewählt)
  • SMTP-Relay-Server: mail.arcor.de

Konfigurationsdatei /etc/postfix/main.cf

  • Hinzufügen folgender Zeilen:
 smtp_sasl_auth_enable = yes
 smtp_sasl_security_options = noanonymous
 smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
 smtp_tls_security_level = may
 sender_canonical_maps = hash:/etc/postfix/sender_canonical

Passwortdatei /etc/postfix/sasl_password

 mail.arcor.de  EMAIL@arcor.de:PASSWORT

EMAIL und PASSWORT müssen natürlich angepasst werden. Danach hashen:

 sudo chmod 600 /etc/postfix/sasl_password 
 sudo postmap hash:/etc/postfix/sasl_password 

Absenderdatei /postfix/sender_canonical

 LINUX_USER1 EMAIL1@arcor.de
 root        EMAIL2@arcor.de

Auch hier sind LINUX_USER1 und EMAIL1 etc. anzupassen. Danach umwandeln in Datenbank:

 sudo postmap /etc/postfix/sender_canonical 


Neustart von Postfix

 sudo service postfix restart

Test

 mail -s "hello" mein@private_email.de

Nutzen mehrerer Smarthosts

Siehe

Weiterführendes

Siehe