Re: Fw: Cyrus SASL and SMTP AUTH (Relay) and Postfix on Redhat9

From: Pavel Urban (no email)
Date: Fri Aug 01 2003 - 01:55:47 EDT


When I tried similar configuration, I needed to modify starting script
for saslauthd (RedHat 7.3), modifying path to saslauthd socket:

#! /bin/bash
#
# saslauthd Start/Stop the SASL authentication daemon.
#
# chkconfig: - 65 35
# description: saslauthd is a server process which handles plaintext \
# authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKET=/var/spool/postfix/var/run/saslauthd
MECH=ldap
FLAGS="-O /etc/saslauthd.conf"

if [ -f /etc/sysconfig/saslauthd ] ; then
         . /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd

start() {
         echo -n $"Starting $prog: "
         daemon $path -m $SOCKET -a $MECH $FLAGS
         RETVAL=$?
         echo
         [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
         return $RETVAL
}
etc (stop, restart...).

Brent Sorensen wrote:
>
> I have been trying to get the Cyrus SASL setup to authenticate on my
> outbound SMTP server with out much success. The server sends fine from
> the local LAN like it should but when I setup AUTH on the SMTP using
> SASL (saslauthd) I get log errors that show the username and password
> decrypted but say also
> "warning: SASL authentication failure: cannot connect to saslauthd
> server: No such file or directory", and
> "warning: aaa.server.com[9.255.255.255]: SASL LOGIN authentication failed."
> Can anybody tell me why? I have followed every detail of every
> instruction I have found. I know the sasl2 libs are being used and my
> server when I telnet to it on port 25 show the AUTH=plain login cram...
> digest...
>
> I am using rh9 with sasl.2-0.15 (latest I coud find on cyrus sasl site)
> also to postfix.rpm was created from a srcrpm created by Simon Mudd
> (latest rh9 version postfix-2.0.12-3.src.rpm) I compiled the sasl2
> switch and most of the others I turned off like ldap and mysql. The
> code compile fine and the smtp works from inside the LAN, but the AUTH
> piece is not finding the saslauthd server. I have tried to turn off the
> chroot in postfix without any difference. I don't really care at the
> moment if the AUTH is clear plain or login, I just need it to work.
> Then I can worry about the more encrypted methods later.
>
> Both saslauthd and postfix are running.
>
> Any help, I'm tearing out my hair trying to get this last piece
> working. My inbound POP3 and IMAP are working fine.
>
> Thanks so much for any help, I'm still new to this but has successfuly
> set it up about 6 months earlier on a Mandrake 8.2 server. (the server
> died and the company wanted to standardize all Linux on RH9, not my
> decision, I just do what I'm told)
>
> Brent Sorensen -- System Administrator
> Infotrax Systems, LLC

-- 
***********************************************************************
Pavel Urban ()
IOL system disaster
Internet OnLine, www.iol.cz
***********************************************************************
    Vegetables should not operate electronic equipment.
           Computer Stupidities, http://rinkworks.com/stupid/
***********************************************************************







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD