Portál AbcLinuxu, 10. května 2025 01:14
- postfix/smtpd[12272]: warning: SASL authentication failure: Can only find author (no password) - postfix/smtpd[12272]: warning: localhost[127.0.0.1]: SASL PLAIN authentication failed - postfix/smtpd[12272]: disconnect from localhost[127.0.0.1] - courierpop3login: Connection, ip=[] - courierpop3login: LOGIN FAILED, ip=[]Výpis - telnet 25:
Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 server.tld ESMTP EHLO domena.tld 250-server.tld 250-PIPELINING 250-SIZE 25000000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250 8BITMIMEDěkuji předem za nakopnutí ...
broken_sasl_auth_clients = yes smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_application_name = smtpd smtpd_use_tls = yes smtp_use_tls = yesNastavení /etc/default/saslauthd:
START=yes MECHANISMS="pam" PARAMS="-m -r /var/spool/postfix/var/run/saslauthd/"S tímto nastavení nelze saslauthd spustit (failed). Pokud vypustím "PARAMS" pak ano. Nastavení /etc/courier/authdaemonrc
authmodulelist="authmysql" authmodulelistorig="authcustom authcram authuserdb authldap authpgsql authmysql authpam" daemons=1 version="" authdaemonvar=/var/run/courier/authdaemonNastavení /etc/courier/authmodulelist
authdaemonNastavení /etc/courier/authmysqlrc:
MYSQL_SERVER localhost MYSQL_USERNAME posta MYSQL_PASSWORD posta MYSQL_DATABASE maildb MYSQL_USER_TABLE mailbox MYSQL_CRYPT_PWFIELD password MYSQL_LOGIN_FIELD username MYSQL_HOME_FIELD '/home/mail/' MYSQL_NAME_FIELD name MYSQL_MAILDIR_FIELD maildir MYSQL_QUOTA_FIELD quota
... PARAMS="-r -m /var/spool/postfix/var/run/saslauthd/"
testsaslauthd -u user -p password -f /var/spool/postfix/var/run/saslauthd/mux
0: NO "authentication failed"Výpis z logu (auth.log):
saslauthd[12976]: (pam_unix) check pass; user unknown saslauthd[12976]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= saslauthd[12976]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module saslauthd[12976]: do_auth: auth failure: [user=test@example.cz] [service=imap] [realm=] [mech=pam] [reason=PAM auth error]Opět nezvývá než poděkovat za radu, nyní je prooblém zase o něco jasnější.
auth sufficient pam_mysql.so user=postfix passwd=heslo host=localhost db=maildb \
table=mailbox usercolumn=username passwdcolumn=password crypt=1 md5=y
auth required pam_deny.so
account sufficient pam_mysql.so user=postfix passwd=heslo host=localhost db=maildb \
table=mailbox usercolumn=username passwdcolumn=password
account required pam_deny.so
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.