|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Dec 2004
Messaggi: 3573
|
CentOS 5.3, postfix with virtual users (mysql): problemi con smtp-auth (cyrus sasl)
Sostanzialmente ho seguito questa guida:
http://www.how2forge.com/virtual_use..._clamav_centos Da /var/log/maillog: Codice:
Jan 2 12:48:35 darkbasic postfix/smtpd[14133]: connect from [...] Jan 2 12:48:36 darkbasic postfix/smtpd[14133]: setting up TLS connection from [...] Jan 2 12:48:36 darkbasic postfix/smtpd[14133]: TLS connection established from [...]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) Jan 2 12:48:36 darkbasic postfix/smtpd[14133]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory Jan 2 12:48:36 darkbasic postfix/smtpd[14133]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory Jan 2 12:48:36 darkbasic postfix/smtpd[14133]: warning: SASL authentication failure: Password verification failed Jan 2 12:48:36 darkbasic postfix/smtpd[14133]: warning: [...]: SASL PLAIN authentication failed: authentication failure Jan 2 12:48:36 darkbasic postfix/smtpd[14133]: lost connection after AUTH from [...] Jan 2 12:48:36 darkbasic postfix/smtpd[14133]: disconnect from [...] Codice:
Jan 2 12:48:16 darkbasic postfix/smtpd[14133]: sql_select option missing Jan 2 12:48:16 darkbasic postfix/smtpd[14133]: auxpropfunc error no mechanism available Codice:
log_level: 3 pwcheck_method: auxprop auxprop_plugin: sql sql_engine: mysql sql_hostnames: localhost sql_database: postfix sql_user: postfix sql_passwd: my_password sql_select: SELECT username, password FROM mailbox WHERE username = '%u' sql_usessl: no Codice:
#%PAM-1.0 #auth required pam_stack.so service=system-auth #account required pam_stack.so service=system-auth # Comment : SMTP AUTH with MySQL # This is the first line auth required pam_mysql.so user=postfix passwd=my_password host=127.0.0.1 db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1 # This is a second line account sufficient pam_mysql.so user=postfix passwd=my_password host=127.0.0.1 db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1 Riporto anche una entry della tabella mailbox del database: Codice:
username password name maildir quota local_part domain created modified active darkbasic@darkbasic.homelinux.com $2$c40acac4$b.cdjROxeoKDD81QBa8hc0 darkbasic.homelinux.com/darkbasic/ 0 darkbasic darkbasic.homelinux.com 2002-01-01 10:40:59 2002-01-01 10:40:59 1 Suggerimenti? P.S. Ovviamente postfix l'ho preso da centosplus in modo che avesse il supporto a mysql (2:2.3.3-2.1.centos.mysql_pgsql) P.P.S. Postfix non è chrootato in CentOS 5.3 vero?
__________________
Debian amd64 | Gentoo amd64 | AMD Athlon64 3800+ X2@2701Mhz vcore 1.49V | Placing an unpatched Windows computer directly onto the Internet in the hope that it downloads the patches faster than it gets exploited are odds that you wouldn't bet on in Vegas | e-mail+jabber: darkbasic|a.t|linuxsystems|d.o.t|it | www.linuxsystems.it |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Dec 2004
Messaggi: 3573
|
Sarebbero molto utili anche informazioni su come debuggare il problema..
__________________
Debian amd64 | Gentoo amd64 | AMD Athlon64 3800+ X2@2701Mhz vcore 1.49V | Placing an unpatched Windows computer directly onto the Internet in the hope that it downloads the patches faster than it gets exploited are odds that you wouldn't bet on in Vegas | e-mail+jabber: darkbasic|a.t|linuxsystems|d.o.t|it | www.linuxsystems.it |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Dec 2004
Messaggi: 3573
|
Auguro con tutto il cuore la cagarella a fischio a chi ha avuto la brillante idea di cambiare il comportamento di default da una versione all'altra di sasl
![]() Dopo aver bestemmiato per giorni su questa cosa oggi ho notato per puro caso un [user:darkbasic], che compare in /var/log/messages SOLO ed esclusivamente quando si usa saslauthd in pwcheck_method (eh già, li ho provati tutti...). Avete capito dov'era il problema!? Le fottutissime nuove versioni di sasl troncano l'username cancellando il dominio ![]() E questo è diventato il comportamento di default!!! E' bastato avviare il demone con un -r per risolvere il problema. ![]() ![]() ![]()
__________________
Debian amd64 | Gentoo amd64 | AMD Athlon64 3800+ X2@2701Mhz vcore 1.49V | Placing an unpatched Windows computer directly onto the Internet in the hope that it downloads the patches faster than it gets exploited are odds that you wouldn't bet on in Vegas | e-mail+jabber: darkbasic|a.t|linuxsystems|d.o.t|it | www.linuxsystems.it |
![]() |
![]() |
![]() |
#4 | |||
Senior Member
Iscritto dal: Jan 2001
Messaggi: 2289
|
Quote:
Quote:
Quote:
__________________
FreeBSD, OpenBSD and GNU/Linux User Free Software Foundation Associate Member proudly member of poco-serio™ team! nella foto son quello simpatico... l'altro e' |Stan| |
|||
![]() |
![]() |
![]() |
#5 | ||||
Senior Member
Iscritto dal: Dec 2004
Messaggi: 3573
|
Quote:
Quote:
![]() Soltanto di fronte alle richieste incazzate degli utenti e dei mantainer hanno aggiunto l'opzione "compatible behaviour", che in debian è diventata subito default (e infatti avendo lavorato sempre su debian non mi sono mai accorto di questa cosa). Quote:
Quote:
![]()
__________________
Debian amd64 | Gentoo amd64 | AMD Athlon64 3800+ X2@2701Mhz vcore 1.49V | Placing an unpatched Windows computer directly onto the Internet in the hope that it downloads the patches faster than it gets exploited are odds that you wouldn't bet on in Vegas | e-mail+jabber: darkbasic|a.t|linuxsystems|d.o.t|it | www.linuxsystems.it |
||||
![]() |
![]() |
![]() |
#6 |
Junior Member
Iscritto dal: May 2009
Messaggi: 1
|
Configurazione postfix
salve! ho lo stesso problema e non riesco a venirne fuori...
potresti gentilmente postarmi la tua conf di postfix? Grazie!! |
![]() |
![]() |
![]() |
#7 |
Senior Member
Iscritto dal: Dec 2004
Messaggi: 3573
|
Adesso non ho accesso a quel server, la settimana prossima vedo di tirarti giu i config.
__________________
Debian amd64 | Gentoo amd64 | AMD Athlon64 3800+ X2@2701Mhz vcore 1.49V | Placing an unpatched Windows computer directly onto the Internet in the hope that it downloads the patches faster than it gets exploited are odds that you wouldn't bet on in Vegas | e-mail+jabber: darkbasic|a.t|linuxsystems|d.o.t|it | www.linuxsystems.it |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 14:52.