OSEC

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: newbie (porcusdeckpoint.ch)
Date: Wed Dec 07 2005 - 04:21:24 CST


So :

I compiled postfix without SASL and it runs fine.

However, I get this (that's something I was expecting actually)

Dec 7 10:58:08 dks5 postfix/smtpd[2270]: warning:
smtpd_sasl_auth_enable is true, but SASL support is not compiled in

So, when I'm compiling with sasl2, and that I've got sasl_auth on true,
postfix won't run. I'm using Fedorda core 4 dev libs for my compilation.
   Do you think I should recompile sasl by myself ?

Truong Tan Son wrote:
> 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
>
>
>