Content-Type: multipart/alternative; boundary="------------090402040308030306050000" --------------090402040308030306050000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 12 Nov 2011 18:32:55 +0100 Subject: Re: [maildropl] Need some very very basic help with Maildrop please From: Sam Varshavchik To: courier-maildrop@lists.sourceforge.net brian writes: > But I would be stuck there, I think. If I have two users, with two "POLL" > blocks in fetchmail, then is any parm passed > to maildrop that I could use? No, you shouldn't. Once again: you put a .mailfilter in each user's home directory, and that's where you provide mail delivery instructions for the recipient. > But then Maildrop needs to run with $HOME set correctly for each user. Is > that how it works? When your mail server runs maildrop, it should do that after dropping root and running maildrop under the recipient's uid and gid. maildrop checks which uid and gid it runs as, and sets $HOME accordingly. This is all explained in the maildropfilter man page. OK, I guess I understand this OK. But it somehow does not seem to do that properly. I tested again running fetchmail as fetchmail, mail or root. STill get the log in /var/lib/fetchmail/maildrop.log, when it is defined as just maildrop.log. Or maybe the log is always in the same place. Time for some more testing. Maybe I should build my own Maildrop? Cheers Brian --------------090402040308030306050000 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: Sat, 12 Nov 2011 18:32:55 +0100
Subject: Re: [maildropl] Need some very very basic help with Maildrop
please
From: Sam Varshavchik <mrsam@courier-mta.com>
To: courier-maildrop@lists.sourceforge.net

brian writes:

> But I would be stuck there, I think. If I have two users, with two
"POLL"  
> blocks in fetchmail, then is any parm passed
> to maildrop that I could use?

No, you shouldn't. Once again: you put a .mailfilter in each user's home
 
directory, and that's where you provide mail delivery instructions for
the  
recipient.

> But then Maildrop needs to run with $HOME set correctly for each user.
Is  
> that how it works?

When your mail server runs maildrop, it should do that after dropping
root  
and running maildrop under the recipient's uid and gid. maildrop checks
 
which uid and gid it runs as, and sets $HOME accordingly.

This is all explained in the maildropfilter man page.



OK, I guess I understand this OK. But it somehow does not seem to do that properly.
I tested again running fetchmail as fetchmail, mail or root. STill get the log in 
/var/lib/fetchmail/maildrop.log, when it is defined as just maildrop.log.

Or maybe the log is always in the same place.

Time for some more testing. 

Maybe I should build my own Maildrop?

Cheers Brian



--------------090402040308030306050000--