Benutzer-Werkzeuge

Webseiten-Werkzeuge


postfix_test

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
postfix_test [2025/10/19 14:57]
jango
postfix_test [2025/10/24 13:01] (aktuell)
jango
Zeile 1: Zeile 1:
-Beispiele für [[Postfix]] Setups.+Beispiele für [[Postfix]] Setups mit [[SASL]] für [[PAM]], [[LDAP]] etc.
  
 =====SASL mit PAM===== =====SASL mit PAM=====
Zeile 91: Zeile 91:
 ldap_filter: (sAMAccountName=%u) ldap_filter: (sAMAccountName=%u)
 ldap_auth_method: bind ldap_auth_method: bind
 +</code>
 +
 +=====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 's/^MECH=.*/MECH=pam/' /etc/sysconfig/saslauthd
 +
 +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 /etc/postfix/sasl
 +sudo tee /etc/postfix/sasl/smtpd.conf >/dev/null <<'EOF'
 +pwcheck_method: saslauthd
 +mech_list: PLAIN LOGIN
 +log_level: 7
 +EOF
 +
 +sudo postconf -e "smtpd_sasl_auth_enable = yes"
 +sudo postconf -e "smtpd_sasl_type = cyrus"
 +sudo postconf -e "smtpd_sasl_path = smtpd"
 +sudo postconf -e "smtpd_sasl_security_options = noanonymous"
 +sudo postconf -e "broken_sasl_auth_clients = yes"
 +
 +sudo postconf -e "smtpd_tls_auth_only = no"
 +sudo postconf -e "smtpd_use_tls = no"
 +sudo postconf -e "smtpd_tls_security_level = none"
 +
 +sudo postconf -e "smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination"
 +
 +sudo postconf -e "relayhost = vie-srv-ex02.d2000.local"
 +sudo postconf -e "fallback_relay = vie-srv-ex01.d2000.local"
 +
 +sudo systemctl restart postfix
 +sudo systemctl restart saslauthd
 </code> </code>
postfix_test.1760878660.txt.gz · Zuletzt geändert: 2025/10/19 14:57 von jango