Unterschiede zwischen den Revisionen 16 und 17
Revision 16 vom 2004-09-06 15:18:31
Größe: 2782
Autor: kiel-d9ba9ad8
Kommentar:
Revision 17 vom 2004-09-06 15:18:56
Größe: 2782
Autor: kiel-d9ba9ad8
Kommentar:
Gelöschter Text ist auf diese Art markiert. Hinzugefügter Text ist auf diese Art markiert.
Zeile 3: Zeile 3:
 * [[Debian]]: Pakete `postfix-tls libsasl-modules-plain sasl-bin libsasl-digestmd5-plain` installieren.  * ["Debian"]: Pakete `postfix-tls libsasl-modules-plain sasl-bin libsasl-digestmd5-plain` installieren.

Mailversand mit smtp-auth

  • ["Debian"]: Pakete postfix-tls libsasl-modules-plain sasl-bin libsasl-digestmd5-plain installieren.

  • SuSE: 7.3: im normalen Postfix-Paket ist ["TLS"] bereits vorhanden
  • ArkLinux: im normalen Postfix-Paket ist ["TLS"] bereits vorhanden

  • RedHat: im normalen Postfix-Paket ist ["TLS"] bereits vorhanden

/etc/postfix/main.cf:

smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd

relayhost = auth.smtp.kundenserver.de
# relayhost = [smtp.1und1.com]

/etc/postfix/saslpasswd:

mailserver                     user:password
auth.smtp.kundenserver.de      m319533-11:geheeim

Danach: postmap /etc/postfix/saslpasswd und /etc/init.d/postfix reload

Wem das zu kurz war, siehe auch: [http://www.tuxhausen.de/postfix_smtp_auth.html Tuxhausen Postfix SMTP-Auth]

Mailannahme per smtp-auth und SPAM-Schutz

Für mysasldomain sucht man sich was hübsches raus, z.B. Firmenname (einfacher String, nur a-z).

/!\ Die SPAM-Schutz-Einstellungen sind ungetestet und daher auskommentiert - ggf. ne extra Sektion dafür aufmachen und das hier als Minimalbeispiel smtpd-auth lassen.

# sasl (password authentication)
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
# noplaintext <- does not work with outlook 2000
smtpd_sasl_local_domain = mysasldomain

#only for broken clients like outlook express 4 and exchange
##broken_sasl_auth_clients = yes

disable_vrfy_command = yes
smtpd_helo_required = yes

# from unknown, accept only mail for us (or relay_domains)
# from sals authenticated users, accept all
smtpd_recipient_restrictions =
 permit_mynetworks
 permit_sasl_authenticated
 check_relay_domains
 reject

# spam-protection, but may also harm some misconfigured mail servers
#smtpd_helo_restrictions =
# permit_mynetworks
# reject_invalid_hostname
# reject_non_fqdn_hostname
# reject_unknown_hostname
# permit

# spam-protection
#smtpd_client_restrictions =
# permit_mynetworks
# warn_if_reject reject_map_rbl
 
# spam-protection
#smtpd_sender_restrictions =
# permit_mynetworks
# reject_non_fqdn_sender
# reject_unknown_sender_domain
# permit

#smtpd_etrn_restrictions =
# reject

Mailpasswort für Mailuser ändern:

# Aufruf: mailpasswd username
saslpasswd -c -u mysasldomain -a smtp $1

Wichtig für Debianer :-)

Postfix läuft bei Debian meistens im chroot.
Die Datei /etc/sasldb muß nach /var/spool/postfix/etc/sasldb

Passwortcheck definieren

/usr/lib/sasl/smtpd.conf
pwcheck_method: sasldb

/!\ Achtung: Diese Datei existiert bei einer Neuinstallation noch nicht. Sie muß angelegt werden

Postfix/SmtpAuth (zuletzt geändert am 2014-07-04 10:26:37 durch dslb-092-074-187-170)