Current time: 11-06-2024, 11:32 AM Hello There, Guest! (LoginRegister)


Post Reply 
FreeBSD7 sasl postfix auth problem
Author Message
la1o Offline
Junior Member
*

Posts: 11
Joined: Nov 2008
Reputation: 0
Post: #1
FreeBSD7 sasl postfix auth problem
imap and pop3 working fine, but when i try to send a mail from my client with different smtpd.conf. main.cf and master.cf are ispcp default install

Code:
/usr/local/lib/sasl2/smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: mysql login plain crammd6 digestmd5
mechlist: PLAIN LOGIN

sql_engine: mysql
sql_user: xxx
sql_passwd: xxx
sql_hostnames: xxx
sql_database: xxx
sql_select: SELECT mail_pass FROM mail_users WHERE mail_addr = '%u@%r'
log_level: 7

log
warning: SASL authentication failure: Password verification failed
warning: unknown[201.239.173.106]: SASL PLAIN authentication failed: authentication failure

Code:
/usr/local/lib/sasl2/smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sasldb
mechlist: PLAIN LOGIN CRAM-MD5 DIGEST-MD5

log
warning: SASL authentication problem: unable to open Berkeley db /usr/local/etc/sasldb2: No such file or directory
warning: SASL authentication problem: unable to open Berkeley db /usr/local/etc/sasldb2: No such file or directory
warning: SASL authentication failure: Password verification failed
warning: unknown[201.239.173.106]: SASL PLAIN authentication failed: authentication failure

-rw-r--r--  1 cyrus  mail  12288  2 mar 02:41 /usr/local/etc/sasldb2

SO: FreeBSD 7 (jail)
ispcp 1.0.0 stable

courier-authlib-0.62.1
courier-authlib-base-0.62.1
courier-authlib-mysql-0.62.1
courier-authlib-userdb-0.62.1
courier-imap-4.4.1,2
cyrus-sasl-2.1.22_2
cyrus-sasl-saslauthd-2.1.22_1
postfix-2.5.6,1

telnet jail 25
250-PIPELINING
250-SIZE
250-VRFY
250-ETRN
250-AUTH NTLM LOGIN PLAIN GSSAPI DIGEST-MD5 CRAM-MD5
250-AUTH=NTLM LOGIN PLAIN GSSAPI DIGEST-MD5 CRAM-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

how i can make work smtp auth login?
03-03-2009 01:59 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: FreeBSD7 sasl postfix auth problem
Yes, there are still Problems with SASL on FreeBSD.
I also want to fix it, but absolute no time the next days. I´m still on the install Docu in the Wiki and try to fix one problem after one.

Next is, that there are some more problems in Jail then on the host itself.
Ok, this is now not the reason but makes it not easier.

Greez BeNe
03-03-2009 07:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
la1o Offline
Junior Member
*

Posts: 11
Joined: Nov 2008
Reputation: 0
Post: #3
RE: FreeBSD7 sasl postfix auth problem
i have working auth

appz:
cyrus-sasl-2.1.22_2
postfix-2.5.6,1

postfix run chrooted per default

mkdir -p /var/spool/postfix/usr/local/etc

/usr/local/etc/ispcp/ispcp.conf

MTA_SASLDB_FILE = /var/spool/postfix/usr/local/etc/sasldb2
ETC_SASLDB_FILE = /var/spool/postfix/usr/local/etc/sasldb2

if i have users i copy

cp /usr/local/etc/sasldb2 /var/spool/postfix/usr/local/etc/sasldb2

i restart ispcp_daemon
/usr/local/etc/rc.d/ispcp_daemon restart

i need too copy this files

mkdir /var/spool/postfix/etc
cp /etc/services /var/spool/postfix/etc
cp /etc/resolv.conf /var/spool/postfix/etc


this is working for me


note:
main.cf is untouched and dont need a /usr/local/lib/sasl/smtd.conf
sorry for my bad english

bye
(This post was last modified: 03-05-2009 05:09 AM by la1o.)
03-05-2009 04:33 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: FreeBSD7 sasl postfix auth problem
Thanks for Info! Cool
I will test it and then add it to the Wiki.

Greez BeNe
03-05-2009 04:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)