Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
POSTFIX - SASLAUTHD - PAM - MYSQL (- CYRUS)
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
roland_ke
n00b
n00b


Joined: 28 Sep 2003
Posts: 21
Location: Vienna / Austria

PostPosted: Sun Feb 01, 2004 9:47 pm    Post subject: POSTFIX - SASLAUTHD - PAM - MYSQL (- CYRUS) Reply with quote

i use a postfix 2.0.16-r1.
imap-server is a cyrus, up and running...
i use saslauthd for authentication with -a pam.
in imapd.conf i use
Code:

sasl_pwcheck_method: saslauthd


/etc/pam.d/imap:
Code:
auth sufficient pam_mysql.so user=XX passwd=XX host=XX db=XX table=XX usercolumn=XX passwdcolumn=XX crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time

account required pam_mysql.so user=XX passwd=XX host=XX db=XX table=XX usercolumn=XX passwdcolumn=XX crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time

is the same as /etc/pam.d/smtp
and authentification to the imap works well, but authentification to the smtp looks like it's falling back to sasldb.
in /etc/postfix/main.cf i use:
Code:

smtpd_sasl2_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_local_domain = XX
broken_sasl_auth_clients = yes


and

/etc/sasl2/smtpd.conf
Code:

pwcheck_method: saslauthd



is there something wron with this configuration? as said, saslauthd works fine with cyrus, but not with postfix...

greetings,

roland
_________________
don't blame me, it's a hardware problem!
Back to top
View user's profile Send private message
georwell
Guru
Guru


Joined: 25 Jun 2003
Posts: 430
Location: Uppsala, Sweden

PostPosted: Mon Feb 02, 2004 10:30 am    Post subject: Reply with quote

I don't know about saslauth on postfix but in Sendmail you need to add a config file Sendmail.conf in /usr/lib/sasl2 directory.

If you telnet to port 25 what auth options does it give?
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