LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   TLS and SASL support is not compiled in (https://www.linuxquestions.org/questions/linux-server-73/tls-and-sasl-support-is-not-compiled-in-4175461895/)

yobogs 05-14-2013 05:02 AM

TLS and SASL support is not compiled in
 
Hello,

I have Building Postfix 2.10 on CentOS 6 from Source (with this tuto http://stevejenkins.com/blog/2011/01...5-from-source/).

It's works fine but when i send an email, i have this error :

Code:

May 14 13:36:07 jexgs postfix/smtpd[9804]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in
May 14 13:36:07 jexgs postfix/smtpd[9804]: warning: TLS has been selected, but TLS support is not compiled in

I have compiled with this option :

Code:

make makefiles CCARGS='-fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DPREFIX=\\"/usr\\" -DHAS_LDAP -DLDAP_DEPRECATED=1  -DHAS_PCRE -I/usr/include/openssl -I/usr/include/sasl  -I/usr/include' AUXLIBS='-L/usr/lib -L/usr/lib/openssl -lssl -lcrypto -L/usr/lib/sasl2 -lsasl2 -lpcre -lz -lm -lldap -llber -Wl,-rpath,/usr/lib/openssl -pie -Wl,-z,relro' OPT='-O' DEBUG='-g'
Anyone have an idea about my problem ?

Tks for your help (and sorry for my english ;-))

TB0ne 05-14-2013 09:32 AM

Quote:

Originally Posted by yobogs (Post 4950741)
Hello,
I have Building Postfix 2.10 on CentOS 6 from Source (with this tuto http://stevejenkins.com/blog/2011/01...5-from-source/). It's works fine but when i send an email, i have this error :
Code:

May 14 13:36:07 jexgs postfix/smtpd[9804]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in
May 14 13:36:07 jexgs postfix/smtpd[9804]: warning: TLS has been selected, but TLS support is not compiled in

I have compiled with this option :
Code:

make makefiles CCARGS='-fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DPREFIX=\\"/usr\\" -DHAS_LDAP -DLDAP_DEPRECATED=1  -DHAS_PCRE -I/usr/include/openssl -I/usr/include/sasl  -I/usr/include' AUXLIBS='-L/usr/lib -L/usr/lib/openssl -lssl -lcrypto -L/usr/lib/sasl2 -lsasl2 -lpcre -lz -lm -lldap -llber -Wl,-rpath,/usr/lib/openssl -pie -Wl,-z,relro' OPT='-O' DEBUG='-g'
Anyone have an idea about my problem ?

Tks for your help (and sorry for my english ;-))

Your english is fine..but please don't use text-speak like 'tks'. :)

The only thing I can think of, is that you've got the postfix pre-built package installed. Do an "rpm -qa | grep -i postfix", and see what comes up. If it's installed, the pre-built binary may be getting called before your custom-built one.

yobogs 05-14-2013 09:50 AM

Hi,

Thanks for your response :
Code:

rpm -qa | grep -i postfix
postfix-2.6.6-2.2.el6_1.i686

AND

Code:

postconf -d | grep mail_version
mail_version = 2.10.0


TB0ne 05-14-2013 10:09 AM

Quote:

Originally Posted by yobogs (Post 4950954)
Hi,
Thanks for your response :
Code:

rpm -qa | grep -i postfix
postfix-2.6.6-2.2.el6_1.i686

AND
Code:

postconf -d | grep mail_version
mail_version = 2.10.0


Ok...so, you've got two versions of postfix installed, quite possibly with different capabilities built in. The solution is fairly obvious. You can either remove the pre-built package, or check/modify the location of where the postfix executable is pointing to be the one you built. Not any other options, as far as I know.

Easiest thing would be to remove the built-in package. Also, you aren't really getting ERRORS...just warnings. So, unless you need/want TLS, etc, there's nothing to worry about, if things are working.

yobogs 05-14-2013 10:12 AM

Ok, i'll try to remove the built-in package ;-)

For now i don't really need TLS ;-)

Thanks for your help and your response

siremaxus 05-14-2013 11:23 AM

Hello,

Sorry to arrive so late to this thread, but I wanted to ask:

Did you follow this guide?
http://wiki.centos.org/HowTos/postfix_sasl

Good Luck

Sire Maxus

SteveJenkins 05-14-2013 02:52 PM

Did you do "make upgrade" instead of "make install" as my post suggested? That's supposed to install the newly compiled one in the same location as the old one, and then all that's needed is a simple restart.


All times are GMT -5. The time now is 05:22 PM.