Re: [exim] Multiple users for SMTP Authentication

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Mike Slater-Jones
Data:  
Para: 'Exim-users'
Asunto: Re: [exim] Multiple users for SMTP Authentication
On 2009-08-14 13:45, John Burnham wrote:
> >
> > There's some stuff on the Exim wiki like
> >
> > http://wiki.exim.org/AuthenticatedSmtpUsingPam
> > and
> > http://wiki.exim.org/AuthenticatedSmtpUsingPam
> >
>
> Gah. I need coffee (and sleep) - one of those links should have been
>
> http://wiki.exim.org/AuthenticatedSmtpUsingSaslauthd
>
> John
>


Thanks John,
I've rebuilt exim and got sasl up and working fine as per the instructions
for Saslauthd.

I'm in the process of testing it using:

/usr/exim/bin/exim -d+auth -bh 127.0.0.1

But I'm getting the following output:

Cannot connect to saslauthd daemon (at '/var/run/saslauthd'): Permission
denied
saslauthd: query failed (cannot connect to saslauthd daemon at
/var/run/saslauthd: Permission denied)

Now checking on google brings up many solutions for a Debian OS (ie put the
exim user into the sasl group), but I've seen no suggestions for a Fedora or
CentOS system - (Those systems don't appear to have a sasl group).

Saslauthd is running as root:root and exim is running as exim:mail

/var/run/saslauthd has permissions of rwx for world and on all files below
and is owned by root:root.

My saslauthd config file in /etc/sysconfig is:

# Directory in which to place saslauthd's listening socket, pid file, and so
# on. This directory must already exist.
SOCKETDIR=/var/run/saslauthd

# Mechanism to use when checking passwords. Run "saslauthd -v" to get a
list
# of which mechanism your installation was compiled with the ablity to use.
MECH=pam

# Additional flags to pass to saslauthd on the command line. See
saslauthd(8)
# for the list of accepted flags.
FLAGS=

SASLAUTHD_OPTS="-a shadow"

Anyone got any suggestions ? My guess is its probably obvious what I've done
wrong !

Thanks