On Sun, Jan 07, 2007 at 07:43:17PM +0000, Reuben Thomas wrote:
> >There you go. Unless you quote the argument to "to", it is evaluated.
> >!rrt means 'not string', and that means 0. That's why maildrop said that
> >it delivered to 0.
> 
> Thanks. However, this only cures the side note about mail seemingly 
> disappearing altogether, not the main part of the original report about 
> mailfilter failing to change to uid 0 when run as root. Running mailfilter 
> directly is not the problem, running it with -d root as root is.

You said:

> if I setuid it it refuses to work (which is fine given current policy, but
> doesn't help me to get maildrop to work with esmtp).

Well, it should work if esmtp runs it as one of the so-called trusted users.
The compiled-in default includes: root mail daemon. What does esmtp run it
as?

Also, the most straightforward way to avoid the trusted user requirement is
to avoid the -d option (and avoid setuid, too). You can do that if you can
tell esmtp to change the environment for you.
For example the way Postfix does it:
http://www.postfix.org/postconf.5.html#mailbox_command
Exim can also do it:
http://www.exim.org/exim-html-4.63/doc/html/spec_html/ch23.html

-- 
     2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to