|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Postfix + saslauthd + mysql
From: Truong Tan Son (sontt
fcv.fujitsu.com)
Date: Sun Dec 04 2005 - 18:51:12 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dear Newbie,
How about your postfix without SASL, does it run ?
Do you install cyrus-sasl2 and how smtpd.conf ?
You should details that, may be I find out reason of error for you.
There is my installation postfix on RedHat 7.3:
Install cyrus-sasl2:
^^^^^^^^^^^^^^
./configure --enable--enable-anon --enable-plain --enable-sql --enable-login --disable-krb4 --enable-cram --enable-digest --enable-otp
--with-saslauthd=/var/run --with-pam --with-openssl=/usr/local/ssl --with-plugindir=/usr/local/lib/sasl2 --with-mysql=/usr/local/mysql
/usr/local/lib/sasl2/smtpd.conf:
^^^^^^^^^^^^^^^^^^^^^^
pwcheck_method:auxprop
mech_list: plain login cram-md5 digest-md5
auxprop_plugin: sql
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: root
sql_passwd: passwd123
sql_database: mail
sql_select: select clear from postfix_users where email='%u
%r' and postfix='y'
sql_verbose: true
> Truong Tan Son wrote:
>
>>
>> try to test:
>>
>> make makefiles
>> CCARGS="-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DHAS_SSL -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/ssl/include"
>> AUXLIBS="-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -L/usr/local/ssl/lib -L/usr/local/lib -R/usr/local/lib -lsasl2 -lssl
>> -lcrypto"
>>
>
> I used that one to match my paths
>
> make -f Makefile.init makefiles \
> CCARGS="-DUSE_SASL_AUTH -I/usr/local/include/sasl -DHAS_MYSQL
> -I/usr/local/mysql/include -DHAS_SSL -I/usr/local/ssl/include" \
> AUXLIBS="-L/usr/local/lib -R/usr/local/lib -lsasl2
> -L/usr/local/mysql/lib -L/usr/local/ssl/lib -lmysqlclient -lz -lm -lssl
> -lcrypto"
>
> However, when I activate my sasl_auth I crash again
>
> Dec 4 13:46:37 dks5 postfix/master[22645]: warning:
> /usr/libexec/postfix/smtpd: bad command startup -- throttling
> Dec 4 13:46:37 dks5 postfix/smtpd[22766]: warning: dict_nis_init: NIS
> domain name not set - NIS lookups disabled
> Dec 4 13:46:37 dks5 postfix/master[22645]: warning: process
> /usr/libexec/postfix/smtpd pid 22766 killed by signal 11
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]