linux:debian:postfix
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:debian:postfix [2024/06/21 14:52] – 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 ===== | ===== Installation ===== | ||
| Line 6: | Line 16: | ||
| apt update | apt update | ||
| apt install postfix | 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.1718974327.txt.gz · Last modified: by gsys