Re: Need some very very basic help with Maildrop please

"brian" <[email protected]>
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
On 11/12/2011 02:28 PM, Sam Varshavchik wrote:

Hi Sam,
> brian writes:
>
>> Maildrop was recommended. I installed the debian packet for Maildrop 
>> and have the following maildroprc file in
>> /etc/courier:
>>
>> #
>> # Global maildrop filter file
>> # /etc/courier/maildroprc
>> #
>> SHELL="/bin/bash"
>> DEFAULT = "/home/brian/Maildir/"
>> MAILDIR = "/home/brian/Maildir/"
>> VERBOSE=on
>
> /etc/courier/maildroprc is the global maildroprc file. This gets 
> processed for any mail handed over to maildrop, for any recipient.

I understand that. Currently I am the only one using it. And frankly As 
I cant get it to even do the most basic things.........
>
> If this is the only account on your machine that gets mail, and that 
> maildrop always gets invoked under the userid and the groupid that 
> owns /home/brian, then this is probably ok.
>
> However, that's not the right way to do things. The only thing that 
> should be in the global maildroprc file is stuff that needs to be done 
> for all mail handled by maildrop, for any recipient. There shouldn't 
> be anything recipient-specific, that belongs to $HOME/.mailfilter

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? I know I could set different DEFAULT=  
statements in each user's $HOME/.mailfilter.
But then Maildrop needs to run with $HOME set correctly for each user. 
Is that how it works?

I tried logging $1,$2,$3 etc. variables in my mailfilter, but they are 
always empty. That was to help me see
how it is being called exactly for each situation. Logging is still a 
bit of a sore point.

>
> Also, maildrop is very picky on the permissions and the ownership of 
> your mail filter. It must be chmoded 0600.
>
Set to 644 here and need to check setuid and ownership too.


>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
>
>
> _______________________________________________
> Courier-maildrop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/courier-maildrop

Thanks

Cheers Brian

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.