linux:debian:postfix
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:debian:postfix [2024/06/21 10:16] – created gsys | linux:debian:postfix [2024/06/21 18:28] (current) – [Smarthost] gsys | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Postfix auf Debian ====== | ====== Postfix auf Debian ====== | ||
+ | ===== Befehle ===== | ||
+ | < | ||
+ | mailq | ||
+ | less / | ||
+ | postsuper -d ALL | ||
+ | postsuper -d <ID> | ||
+ | systemctl restart postfix | ||
+ | </ | ||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | < | ||
+ | apt update | ||
+ | apt install postfix | ||
+ | apt install postfix libsasl2-modules | ||
+ | </ | ||
+ | |||
+ | ===== Konfiguration ===== | ||
+ | |||
+ | ==== Sender Mapping ==== | ||
+ | ''/ | ||
+ | < | ||
+ | sender_canonical_maps = hash:/ | ||
+ | </ | ||
+ | |||
+ | ''/ | ||
+ | < | ||
+ | root root@host.example.org | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | chmod 600 / | ||
+ | postmap / | ||
+ | </ | ||
+ | |||
+ | ==== Smarthost ==== | ||
+ | |||
+ | If not already installed: | ||
+ | < | ||
+ | apt install libsasl2-modules | ||
+ | </ | ||
+ | |||
+ | ''/ | ||
+ | < | ||
+ | relayhost = [smtp.example.com]: | ||
+ | smtp_sasl_auth_enable = yes | ||
+ | smtp_sasl_password_maps = hash:/ | ||
+ | smtp_sasl_security_options = noanonymous | ||
+ | smtp_use_tls=yes | ||
+ | smtp_tls_security_level = encrypt | ||
+ | </ | ||
+ | |||
+ | ''/ | ||
+ | < | ||
+ | [smtp.example.com]: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | chmod 600 / | ||
+ | postmap / | ||
+ | </ | ||
+ | |||
+ | ===== Test ===== | ||
+ | |||
+ | < | ||
+ | apt install mailutils | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | openssl s_client -connect mx01.example.org: | ||
+ | </ |
linux/debian/postfix.1718957777.txt.gz · Last modified: 2024/06/21 10:16 by gsys