Qubax Guru
Joined: 19 Jul 2002 Posts: 451 Location: Tirol, Austria
|
Posted: Thu Sep 23, 2004 1:47 pm Post subject: maildrop: dot-lock err depending on location of mailfilter? |
|
|
downloading emails with getmail
I've set up a simple mailfilter-file for testing maildrop as possible alternative to procmail. Having this file located as ~/.mailfilter, everything works fine:
Code: | [destination]
type = MDA_external
path = /usr/bin/maildrop |
But now i want to have different DEFAULT's for different email-accs. So i made a .mailfilter directory and put my "test mailfilter file" in there. To tell maildrop about this, and have it still running in "delivery-mode", i changed the getmailrc in this way:
Code: | [destination]
type = MDA_external
path = /usr/bin/maildrop
arguments = ("-d","myusername","~/.mailfilters/mailfilter") |
No i suddenly get the dot-lock permission error, that is reportet already sometimes here in the forum and in other places
Code: | /usr/bin/maildrop: Unable to create a dot-lock. |
I tried to setuid of root to maildrop with no difference.
chmod of the dir is 700, of the filterfile 600.
Where might lie the problem? Something wich the commandline options, that i do not see?
idea behind:
get mails form acc1, filter them with the rules of ~/.mailfilters/filter1, and everything that gets through should drop in ~/.mail/acc1/ . Same for acc2, with other filters, other dropin place.
It's already running with procmail, but i want to give alternatives a try.
EDIT:
Trying
Code: | [destination]
type = MDA_external
path = /usr/bin/maildrop
arguments = ("~/.mailfilters/mailfilter") |
for manual-mode produces the paranoid-error of maildrop: Cannot have world/group permissions on the filter file - for your own good.
but rights are set as discribed above. |
|