1 message in net.sourceforge.lists.courier-users[courier-users] How to get maildrop t...
FromSent OnAttachments
Jürgen HerzFeb 26, 2006 3:32 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] How to get maildrop to work with authlib when not being root?Actions...
From:Jürgen Herz (jhe@myrealbox.com)
Date:Feb 26, 2006 3:32:38 pm
List:net.sourceforge.lists.courier-users

Hello,

I'm trying to get maildrop to work as I'd like. That is: not as root since I'm trying to run as few as possible applications as root. But there's a problem.

The applications that call maildrop (Exim and fetchmail) don't run as root, and I want to prevent maildrop have suid root.

But I don't manage it to run maildrop as anything else than root (i.e. that user that owns .mailfilter) without the following when connecting to authlib.

The authdaemon socket dir and file are the following: drwxrwx--- 2 courier vmail 1024 2006-02-26 21:34 . srwxrwxrwx 1 root root 0 2006-02-26 21:34 socket

If run as root, maildrop works, but as anything else (e.g. user Debian-exim, fetchmail or vmail) like: -rwsr-sr-x 1 vmail vmail /usr/bin/maildrop

maildrop just says signal 0x06 and nothing more.

And yes, access to the directory isn't the problem, else the error would be: ERR: authdaemon: s_connect() failed: Permission denied maildrop: Temporary authentication failure.

I don't get what causes this signal error. How to connect to authlib when not being root?

Regards, Jürgen