SASL2, Postfix und PostgreSQL

Herrmann

Well-Known Member
Abend,

ich sitze seit etwa einer Woche daran SASL2 zusammen mit Postfix und PostgreSQL zum Laufen zu bekommen - leider bisher ohne Erfolg.

Ich schicke mit meinem Mailclient eine Mail von einem Testuser an sich selbst.

In der /var/log/auth.log steht folgende Meldung
Code:
Nov 28 22:45:26 smtp PAM_pgsql[3004]: the database connection string and auth_query options are required.
Nov 28 22:45:26 smtp saslauthd[3004]: do_auth         : auth failure: [user=info@midgard.home] [service=smtp] [realm=midgard.home] [mech=pam
] [reason=PAM auth error]

und in der /var/log/maillog
Code:
Nov 28 22:45:25 smtp postfix/smtpd[3008]: TLS connection established from thor.midgard.home[192.168.12.2]: TLSv1 with cipher DHE-RSA-AES256-
SHA (256/256 bits)
Nov 28 22:45:26 smtp postfix/smtpd[3008]: warning: SASL authentication failure: Password verification failed
Nov 28 22:45:26 smtp postfix/smtpd[3008]: warning: thor.midgard.home[192.168.12.2]: SASL PLAIN authentication failed: authentication failure

Hier noch ein paar Konfigurationen.

/usr/local/lib/sasl2/smtpd.conf
Code:
pwcheck_method: saslauthd
mech_list: plain login

/usr/local/etc/pam.d/smtp
Code:
auth required pam_nologin.so
auth required pam_pgsql.so \
  user=mail \
  passwd=secret \
  host=localhost \
  db=maildb \
  table=users \
  usercolumn=userid \
  passwdcolumn=password \
  crypt=1
account sufficient pam_pgsql.so \
  user=mail \
  passwd=secret \
  host=localhost \
  db=maildb \
  table=users \
  usercolumn=userid \
  passwdcolumn=password \
  crypt=1
password required pam_unix.so no_warn try_first_pass

Weiß jemand von euch was ich falsch mache?
 
Back
Top