Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
postfix_test [2025/10/19 14:50] jango |
postfix_test [2025/10/24 13:01] (aktuell) jango |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | =====Version 1===== | + | Beispiele für [[Postfix]] Setups mit [[SASL]] für [[PAM]], [[LDAP]] etc. |
| + | |||
| + | =====SASL mit PAM===== | ||
| Ubuntu 24.04 | Ubuntu 24.04 | ||
| Zeile 60: | Zeile 62: | ||
| </ | </ | ||
| - | SASL mit AD | + | =====SASL mit AD===== |
| + | |||
| + | Die Datei / | ||
| + | |||
| + | Im ursprünglichen Setup wird MECHANISMS=" | ||
| + | |||
| + | - saslauthd delegiert die Authentifizierung an PAM | ||
| + | - PAM wiederum nutzt lokale Systemuser oder andere Module (z. B. pam_unix, pam_winbind, | ||
| + | - Die Konfiguration erfolgt dann über /etc/pam.d/ – nicht über eine eigene saslauthd.conf | ||
| + | |||
| + | Kein Bedarf für / | ||
| + | |||
| + | Sobald du MECHANISMS=" | ||
| < | < | ||
| Zeile 77: | Zeile 91: | ||
| ldap_filter: | ldap_filter: | ||
| ldap_auth_method: | ldap_auth_method: | ||
| + | </ | ||
| + | |||
| + | =====Alma Linux===== | ||
| + | |||
| + | <code bash> | ||
| + | # Postfix und LibSASL installieren | ||
| + | sudo dnf install postfix cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain | ||
| + | |||
| + | # SASL soll gegen PAM authentifizieren. (lokale User) | ||
| + | sudo sed -i ' | ||
| + | |||
| + | sudo systemctl enable --now saslauthd | ||
| + | sudo systemctl status saslauthd | ||
| + | |||
| + | sudo groupadd sasl | ||
| + | sudo usermod -a -G sasl postfix | ||
| + | sudo systemctl restart saslauthd | ||
| + | |||
| + | sudo mkdir -p / | ||
| + | sudo tee / | ||
| + | pwcheck_method: | ||
| + | mech_list: PLAIN LOGIN | ||
| + | log_level: 7 | ||
| + | EOF | ||
| + | |||
| + | sudo postconf -e " | ||
| + | sudo postconf -e " | ||
| + | sudo postconf -e " | ||
| + | sudo postconf -e " | ||
| + | sudo postconf -e " | ||
| + | |||
| + | sudo postconf -e " | ||
| + | sudo postconf -e " | ||
| + | sudo postconf -e " | ||
| + | |||
| + | sudo postconf -e " | ||
| + | |||
| + | sudo postconf -e " | ||
| + | sudo postconf -e " | ||
| + | |||
| + | sudo systemctl restart postfix | ||
| + | sudo systemctl restart saslauthd | ||
| </ | </ | ||