[Postfixbuch-users] SMTP AUTH mit MySQL

Jens Hirschfeld Jens.Hirschfeld at KeepOut.de
Fr Jul 30 16:39:08 CEST 2004


Hallo Liste,

bei mir funktioniert SMTP AUTH über die MySQL Datenbank nicht.
Ich verwende dafür nicht den sasauthd, sondern das auxprop Modul
(Jedenfalls ist das so geplant).

Die Authentifizierung an der Datenbank per imap und pop3 funktioniert
(Courier).

Im MySQL Log wird keine Abfrage für die Authentifizierung aufgelistet.

Wie kann ich testen, ob Postfix erfolgreich auf die Datenbank zugreift?

Hier ein Ausschnitt aus dem mail.log:
Jul 30 16:22:34 mail postfix/smtpd[28207]: warning: dict_nis_init: NIS
domain name not set - NIS lookups disabled
Jul 30 16:22:34 mail postfix/smtpd[28207]: starting TLS engine
Jul 30 16:22:34 mail postfix/smtpd[28207]: connect from
mail2.host.tld[193.xxx.yyy.zzz]
Jul 30 16:22:40 mail postfix/smtpd[28207]: warning: SASL authentication
failure: no secret in database
Jul 30 16:22:40 mail postfix/smtpd[28207]: warning:
mail2.host.tld[193.xxx.yyy.zzz]: SASL CRAM-MD5 authentication failed
Jul 30 16:22:48 mail postfix/smtpd[28207]: lost connection after AUTH
from mail2.host.tld[193.xxx.yyy.zzz]
Jul 30 16:22:48 mail postfix/smtpd[28207]: disconnect from
mail2.host.tld[193.xxx.yyy.zzz]
Jul 30 16:23:00 mail imaplogin: LOGOUT, user=jens.hirschfeld at tld.de,
ip=[::ffff:193.xxx.yyy.zzz], headers=2070, body=10968

postconf -n:
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
helpful_warnings = yes
mailbox_command =
mailbox_size_limit = 0
mydestination = mail.host.de, localhost.host.de, localhost, $myhostname
myhostname = www.mailhost.de
mynetworks = 127.0.0.0/8
myorigin = $myhostname
program_directory = /usr/lib/postfix
recipient_delimiter = +
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_recipient_restrictions =
	permit_sasl_authenticated,
	reject_unknown_sender_domain,
	reject_unknown_recipient_domain,
	permit_mynetworks,
	reject_unauth_destination,
	reject_unauth_pipelining,
	reject_rbl_client relays.ordb.org,
	reject_rbl_client zombie.dnsbl.sorbs.net,
	reject_rbl_client cbl.abuseat.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sender_restrictions =
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf
mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_uid_maps = static:1001

Vielen Dank für die Hilfe im Voraus.

Gruß, Jens.




Mehr Informationen über die Mailingliste Postfixbuch-users