Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix / SASL only works for plain text password [RESOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lostinspace2011
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 230

PostPosted: Sun Oct 25, 2009 12:15 am    Post subject: Postfix / SASL only works for plain text password [RESOLVED] Reply with quote

I am trying to configure my postfix mail server with virtual accounts. Local account work, but any virtual accounts only work with a plain text password. In the previous install I had this working, but since I re-installed it doesn't work any more. From the log message it seems that it is using only PLAIN authentication. I have verified this by entering the password's crypt/hash into the password field and then it worked. I am storing the crypt/hash of the password the same way it did in my previous installation. Since the log doesn't attempt to use other mechanisms (DIGEST-MD5...) I don't thing it's a crypt/hash problem.

Any suggestions on this would really make my day. Have been struggling with this for some time now.

Code:
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/smtp.sasl,v 1.2 2004/07/18 03:26:56 dragonheart Exp $
  mech_list: PLAIN LOGIN
  pwcheck_method: saslauthd
  #pwcheck_method:        auxprop
  mech_list: PLAIN CRAM-MD5 DIGEST-MD5 LOGIN
  allowanonymouslogin: no                                                                             
  allowplaintext: no                                                                                   
  sasl_auxprop_plugin: sql                                                                             
  sql_engine: pgsql                                                                                   
  # Leave commented out to use the unix socket                                                         
  #sql_hostnames: localhost                                                                           
  sql_database: postman                                                                               
  sql_user: postman                                                                                   
  # Not present means no password                                                                     
  #sql_passwd:                                                                                         
  sql_select: SELECT password FROM mailbox WHERE username = '%u' AND domain = '%r'



This is the error from the console log

Quote:
Oct 24 18:23:19 bumblebee postfix/smtpd[10743]: Anonymous TLS connection established from www.routerlogin.com[192.168.0.1]: TLSv1 with cipher AES128-SHA (128/128 bits)
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin Parse the username info@abc.com
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin try and connect to a host
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin trying to open db 'postman' on host ''
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin Parse the username info@abc.com
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin try and connect to a host
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin trying to open db 'postman' on host ''
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: begin transaction
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin create statement from userPassword info abc.com
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin doing query SELECT password FROM mailbox WHERE username = 'info@abc.com' AND domain = 'abc.com';
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin create statement from cmusaslsecretPLAIN info abc.com
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin doing query SELECT password FROM mailbox WHERE username = 'info@abc.com' AND domain = 'abc.com';
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: commit transaction
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin Parse the username info@abc.com
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin try and connect to a host
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: sql plugin trying to open db 'postman' on host ''
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: warning: SASL authentication failure: Password verification failed
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: warning: www.routerlogin.com[192.168.0.1]: SASL PLAIN authentication failed: authentication failure
Oct 24 18:23:27 bumblebee postfix/smtpd[10743]: lost connection after AUTH from www.routerlogin.com[192.168.0.1]
Back to top
View user's profile Send private message
lostinspace2011
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 230

PostPosted: Thu Nov 05, 2009 8:12 pm    Post subject: Reply with quote

Using the crypt USE flag (i think) resolved the problem. I am not 100% sure it was the crypt flag as I am using the following, but in any case this works.

Code:

USE="mmx sse sse2 X unicode truetype jpeg jpeg2k tiff java6 java5 java png \
  opengl dri postgres subversion gpm apache2 unicode maildir type1-fonts \
  bitmap-fonts truetype-fonts postfix subversion crypt pam perl php sasl \
  ssl xml xml2"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum