Hi all , I have a question about attenticated smtpd with cyrus-SASL +
courierpop3d and virtual domains ; I have two servers , one witrh LDAP and
other with mysql users ; And both of then make testsaslauth -u usuario
-p senha -s smtp Ok ; But on telnet 0 25 ; AUTH PLAIN xxxxxxxxxxxx ;
return error autentication ; I don,t now wat I do ; First i will post my
mysql virtual , and later I will show my LDAP virtual ; Obs: Both system
working well with send and courier-pop3 clients ; Just saslauth not working
; On both the postfix NOT chrooted;
*************************************************************************
cat /etc/postfix/sasl/smtpd.conf
log_level: 7
pwcheck_method: saslauthd
#pwcheck_method: auxprop
#auxprop_plugin:sql
mech_list: PLAIN LOGIN
allow_plaintext: true
#sql_engine: mysql
#sql_hostnames: 127.0.0.1
#sql_user: postfix
#sql_passwd: postfix
#sql_database: postfix
#sql_select: select password from mailbox where username = '%u'
#sql_verbose: yes
*********************************************
cat /etc/pam.d/smtp
#primeira linha
auth required pam_mysql.so user=postfix passwd=postfix host=127.0.0.1
db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=0
#segunda linha
account required pam_mysql.so user=postfix passwd=postfix host=127.0.0.1
db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=0
******************************************************
testsaslauthd -u [EMAIL PROTECTED] -p 1234 -s smtp
0: OK "Success."
**********************************************
cat /etc/postfix/main.cf (Just the sasl config)
#====== SASL ================
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
***********************************************
On my /etc/default/saslauthd I have -c in OPTIONS and MECH because I use
full mailaddress for user ID ;
I generete base64 string with perl -MMIME::Base64 -e 'print
encode_base64("[EMAIL PROTECTED]@xxx\01234");' Like www.postfix.org on
documments , SASL authentication how to ; Obs: I test withow full address
, and only with user and password string based64 ; But the system logs
show the same whe i do telnet 127.0.0.1 25 folowed by ehlo xxxx;
Obs: xxxxx is mydomain;
tail /var/log/auth.log
Apr 10 06:14:20 mailserver postfix/smtpd[12371]: sql auxprop plugin using
mysql engine
Apr 10 06:15:11 mailserver postfix/smtpd[12376]: sql auxprop plugin using mysql
engine
Apr 10 06:15:11 mailserver postfix/smtpd[12378]: sql auxprop plugin using mysql
engine
Apr 10 06:15:11 mailserver postfix/smtpd[12379]: sql auxprop plugin using mysql
engine
Apr 10 06:15:46 mailserver postfix/smtpd[12378]: sql plugin Parse the username
[EMAIL PROTECTED]
Apr 10 06:15:46 mailserver postfix/smtpd[12378]: sql plugin try and connect to
a host
Apr 10 06:15:46 mailserver postfix/smtpd[12378]: sql plugin trying to open db
'postfix' on host '127.0.0.1'
Apr 10 06:15:46 mailserver saslauthd[12269]: DEBUG: auth_pam: pam_authenticate
failed: Authentication failure
Apr 10 06:15:46 mailserver saslauthd[12269]: do_auth : auth failure:
[EMAIL PROTECTED] [service=smtp] [realm=xxxx] [mech=pam] [reason=PAM auth error]
**********************************************
cat /var/log/mail.log
Apr 10 06:18:27 mailserver postfix/smtpd[12414]: warning: SASL authentication
failure: Password verification failed
Any sugestion?
---------------------------------
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento! -------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users