I hate to point out the obvious here, but you might want to ask this
question on either a Cyrus SASL mailing list or a Postfix mailing list.
This mailing list is for Courier, which has nothing to do with either
Cyrus SASL nor Postfix.
Cheers,
-- Johnny Lam <[EMAIL PROTECTED]>
[EMAIL PROTECTED] wrote:
> Hello
>
> I fight with SASL2 authentication using mysql for postfix. I tried other
> solution:
>
> -bash-2.05b# cat /usr/local/lib/sasl2/smtpd.conf
> # smtpd.conf
> #pwcheck_method: saslauthd auxprop
> pwcheck_method: auxprop
> auxprop_plugin: sql
> mech_list: plain login
>
> sql_engine: mysql
> sql_hostnames: localhost
> sql_user: vmailuser
> sql_passwd: password123
> sql_database: mail
> sql_select: select clear from postfix_users where email='[EMAIL PROTECTED]'
> and smtpaccess='Y';
> log_level: 9
>
> in postfix main.cf:
> smtpd_sender_restrictions = check_sender_access
> mysql:/usr/local/etc/postfix/mysql-sender.cf
>
> -bash-2.05b# cat /usr/local/etc/postfix/mysql-sender.cf
> user = vmailuser
> password = password123
> dbname = mail
> query = SELECT maildir FROM postfix_users where email='%s' and postfix = 'y'
> hosts = 127.0.0.1
>
> mysql test:
> mysql> SELECT maildir FROM postfix_users where email='[EMAIL PROTECTED]' and
> postfix = 'y';
> +-----------------------------+
> | maildir |
> +-----------------------------+
> | server.com/user1/Maildir/ |
> +-----------------------------+
> 1 row in set (0.00 sec)
>
> When i try to send mail from [EMAIL PROTECTED] to other user i receive:
>
> Sep 28 20:04:52 server postfix/smtpd[33789]: warning: unknown smtpd
> restriction: "server.com/user1/Maildir/"
> Sep 28 20:04:52 server postfix/smtpd[33789]: NOQUEUE: reject: RCPT from
> xxxx[my_ip]: 451 4.3.5 Server configuration error; from=<[EMAIL PROTECTED]>
> to=<[EMAIL PROTECTED]> proto=ESMTP helo=<darkstar>
>
> Debug logs show:
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin trying to open db
> 'mail' on host 'localhost'
> Sep 28 20:18:27 server postfix/smtpd[33892]: begin transaction
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin create statement from
> userPassword user1 server.com
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin doing query select
> clear from postfix_users where email='[EMAIL PROTECTED]' and smtpaccess='Y';;
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin create statement from
> cmusaslsecretPLAIN user1 server.com
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin doing query select
> clear from postfix_users where email='[EMAIL PROTECTED]' and smtpaccess='Y';;
> Sep 28 20:18:27 server postfix/smtpd[33892]: commit transaction
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin Parse the username
> [EMAIL PROTECTED]
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin try and connect to a
> host
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin trying to open db
> 'mail' on host 'localhost'
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin Parse the username
> [EMAIL PROTECTED]
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin try and connect to a
> host
> Sep 28 20:18:27 server postfix/smtpd[33892]: sql plugin trying to open db
> 'mail' on host 'localhost'
>
> Why ?
> What's wrong ?
> COuld anybody help ?
>
> Thanx
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> courier-users mailing list
> [email protected]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users