darkbasic
20-05-2009, 23:07
Sostanzialmente ho seguito questa guida:
http://www.how2forge.com/virtual_users_postfix_courier_mailscanner_clamav_centos
Da /var/log/maillog:
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 [...]
Da /var/log/messages:
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
Ecco /usr/lib/sasl2/smtpd.conf:
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
Inoltre ho modificato anche /etc/pam.d/smtp e /etc/pam.d/smtp.postfix:
#%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
/etc/postfix/main.cf è sostanzialmente quello delle guida.
Riporto anche una entry della tabella mailbox del database:
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
Non funziona una beneamata mazza e io non so più dove sbattere la testa..
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?
http://www.how2forge.com/virtual_users_postfix_courier_mailscanner_clamav_centos
Da /var/log/maillog:
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 [...]
Da /var/log/messages:
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
Ecco /usr/lib/sasl2/smtpd.conf:
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
Inoltre ho modificato anche /etc/pam.d/smtp e /etc/pam.d/smtp.postfix:
#%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
/etc/postfix/main.cf è sostanzialmente quello delle guida.
Riporto anche una entry della tabella mailbox del database:
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
Non funziona una beneamata mazza e io non so più dove sbattere la testa..
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?