[Pkg-exim4-users] Re: cannot connect to /var/run/saslauthd/mux
Ross Boylan
ross at biostat.ucsf.edu
Thu Apr 5 19:35:48 UTC 2007
On Thu, Apr 05, 2007 at 07:58:18PM +0200, Nikolaus Rath wrote:
> Hello,
>
> These lines were not present in the default configuration of the sarge
> package, so I assumed that exim was compiled with reasonable defaults.
> I have added them now nevertheless and it still does not work (same
> error).
>
> Best,
> Nikolaus
>
>
> "Jonathan GF" <jonathan at surestorm.com> writes:
> > Hi,
> >
> > confirm in your exim4.conf / configure you have the following directives:
> >
> > exim_group = Debian-exim
> > exim_user = Debian-exim
> >
> >
> > Best regards,
> >
> > Jonahan GF
> >
> >
> > On 4/3/07, Nikolaus Rath <Nikolaus at rath.org> wrote:
> >>
> >> Hello,
> >>
> >> I have added Debian-exim to the sasl group:
> >>
> >> [0] nelarikon:/etc/exim4/conf.d# groups Debian-exim
> >> Debian-exim : Debian-exim sasl
> >>
> >> The permissions for /var/run/saslauthd seem also correct:
> >>
> >> [0] nelarikon:/etc/exim4/conf.d# dir /var/run/saslauthd/
> >> total 12K
> >> drwx--x--- 2 root sasl 4.0K Apr 3 09:53 .
> >> drwxr-xr-x 15 root root 4.0K Apr 3 09:19 ..
> >> srwxrwxrwx 1 root root 0 Apr 3 09:53 mux
> >> -rw------- 1 root root 0 Apr 3 09:53 mux.accept
> >> -rw------- 1 root root 6 Apr 3 09:53 saslauthd.pid
> >>
> >> However, exim still produces this error:
> >>
> >> [0] nelarikon:~# exim4 -d+auth -bh 127.0.0.1
> >> Exim version 4.50 uid=0 gid=0 pid=22336 D=fbb95cfd
> >> [...]
> >> AUTH PLAIN [snip]
> >> SSMTP<< AUTH PLAIN [snip]
> >> host in smtp_accept_max_nonmail_hosts? yes (matched "*")
> >> Running saslauthd authentication for user ""
> >> saslauthd userid='' servicename='' realm=''
> >> Cannot connect to saslauthd daemon (at '/var/run/saslauthd/mux'):
> >> Permission denied
> >> saslauthd: query failed (cannot connect to saslauthd daemon at
> >> /var/run/saslauthd/mux: Permission denied)
> >> plain_saslauthd_server authenticator:
> >> $1 = \0user\0pass
> >> expansion failed: cannot connect to saslauthd daemon at
> >> /var/run/saslauthd/mux: Permission denied
> >> SMTP>> 435 Unable to authenticate at present
> >>
> >>
> >> When I change the permissions to "chmod 711 /var/run/saslauthd",
> >> everything works fine. So it seems that exim is not really running as
> >> user Debian-exim. Is there any way I can check this? (Yes, I restarted
> >> after adding Debian-exim to the sasl group).
> >>
> >> Or am I missing something very obvious?
> >>
> >> Thanks in advance,
> >>
> >> --Nikolaus
> >>
> >>
> >> _______________________________________________
> >> Pkg-exim4-users mailing list
> >> Pkg-exim4-users at lists.alioth.debian.org
> >> http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
> >>
> >
> >
> >
>
>
> --Nikolaus
Using the split configuration (which is post-sarge, I think) and exim4
I have
# Local users for whom we want IMAP delivery
localpartlist imap_users = user1:user2
MAIN_TRUSTED_USERS = uucp:cyrus
in a file I dropped under conf.d/main
The localpart list is only because I'm only doing Cyrus for some users
(see router coming up next), and cyrus is a trusted user so SIEVE
redirect will work (though this is not your current problem)
conf.d/850_local_imap_user
imap_user:
debug_print = "R: imap_user for $local_part@$domain"
driver = accept
local_parts = +imap_users
transport = cyrus
conf.d/50_rb_cyrus
# Deliver to local cyrus IMAP server via LMTP
cyrus:
debug_print = "T: cyrus for $local_part@$domain"
driver = lmtp
delivery_date_add
envelope_to_add
return_path_add
user = cyrus
socket = /var/run/cyrus/socket/lmtp
batch_max = 40
Notice I set the user to cyrus. If you're trying to do this as
Debian-exim, that may be your problem.
Do you know that SASL is operating properly outside of exim? It is
famously cranky.
Ross
More information about the Pkg-exim4-users
mailing list