Mailserver-Best-Practice: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
Zeile 17: | Zeile 17: | ||
*/etc/postfix/main.cf | */etc/postfix/main.cf | ||
=SSL Verschlüsselung= | =SSL Verschlüsselung= | ||
+ | ==Install letsencrypt== | ||
*sudo apt install letsencrypt | *sudo apt install letsencrypt | ||
*letsencrypt certonly --standalone -d yyyy.tuxmen.de | *letsencrypt certonly --standalone -d yyyy.tuxmen.de | ||
+ | ==master.cf changed== | ||
+ | <pre> | ||
+ | smtps inet n - y - - smtpd | ||
+ | -o smtpd_tls_wrappermode=yes | ||
+ | -o smtpd_sasl_auth_enable=yes | ||
+ | -o smtpd_relay_restrictions=permit_sasl_authenticated,reject | ||
+ | </pre> | ||
=Install and config sasl= | =Install and config sasl= | ||
*apt-get install sasl2-bin | *apt-get install sasl2-bin |
Version vom 7. Februar 2018, 11:08 Uhr
Prepare Maildirs
- mkdir -p /etc/skel/Maildir/new
- mkdir -p /etc/skel/Maildir/cur
- mkdir -p /etc/skel/Maildir/tmp
Install Postfix
- apt-get install postfix
Install Procmail
- apt-get install procmail
Postfix Service Handling
- systemctl start postfix.service
- systemctl restart postfix.service
- systemctl stop postfix.service
- systemctl status postfix.service
Config of Postfix
- /etc/postfix/master.cf
- /etc/postfix/main.cf
SSL Verschlüsselung
Install letsencrypt
- sudo apt install letsencrypt
- letsencrypt certonly --standalone -d yyyy.tuxmen.de
master.cf changed
smtps inet n - y - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
Install and config sasl
- apt-get install sasl2-bin