Re: setup of redhat RPM Postfix with Redhat RPM SASL

Subject: Re: setup of redhat RPM Postfix with Redhat RPM SASL
From: Edward Rudd (eddie at omegaware dot com)
Date: Tue Apr 15 2003 - 13:39:44 EDT

Well, the redhat 8 and redhat 9 RPMS for postfix already have SASL auth
enabled. when they were compiled. so all you'd need to do is enable
smtpd authentication in the file. Add the following lines

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks,
        permit_sasl_authenticated, check_relay_domains.

That'll get smtp authentication up and running on postfix.
you'll also have to edit the /usr/lib/sasl/smtpd.conf file with the SASL
backend and options you wish to use..

the default postfix RPMS with RH 8 and RH 9 are compiled with sasl 1
libraries not sasl2..
if you need then to be linked and using sasl2 then you have to do the
1) install the postfix src.rpm
2) go into the /usr/src/redhat/SPECS/ and edit the postfix.spec file
3) find the line where it says
    %if %{SASL}
        AUXLIBS="${AUXLIBS} -lsasl"
Change this to..
    %if %{SASL}
        CCARGS="${CCARGS} -DUSE_SASL_AUTH -I/usr/include/sasl"
        AUXLIBS="${AUXLIBS} -lsasl2"
4) change the Release: tag toward the top of the spec to 5.1 (RH8) or
11.1 (RH9) (so it'll be seen as "newer" than the stock RH rpms.
5) save the postfix.spec file
6) from the /usr/src/redhat/SPECS/ directory run rpm -bb postfix.spec
7) rpm -Uvh the rpm in /usr/src/redhat/RPMS/i386/
8) then make the above changes to and reload postfix.
9) edit the /usr/lib/sasl2/smtpd.conf file with backend and options.
look at the /usr/share/doc/cyrus-sasl-{version} directory for options
for the smtpd.conf file or look through the mailing list here.

Hope this helps out.

On Tue, 2003-04-15 at 12:01, Daniel Davidson wrote:
> We would like to setup Postfix using SASL for smtp auth. In addition, for
> updating purposes, we would like to use the RedHat RPMs for the installation.
> However, I cannot get this to work. Has anyone ever done a howto for
> installing postfix and SASL using redhat rpms (we have tried redhat 8 and 9).
> any help would be appreciated,
> Dan

Edward Rudd <eddie at omegaware dot com>

Hosted Email Solutions

Invaluement Anti-Spam DNSBLs

Powered By FreeBSD   Powered By FreeBSD