On Fri, Mar 07, 2003 at 12:15:58PM +0000, john gennard wrote:
On Tue, 4 Mar 2003 Devin Rubia wrote:-
Odd. The permissions look OK. Based on the error you reported:
"Unable to open mailbox."
it looks like maildrop is trying to open a mbox file. Perhaps maildrop
is unable to find the maildirs you have created and is trying to create
a mbox to deliver to but is failing (a quick parse of maildrop/deliver.C
seems to suggest this). Let's try this:
if (/^To:.*debian-user@lists\.debian\.org$/)
{
to "$DEFAULT/debian"
}
As you have already defined $DEFAULT in your .mailfilter file.
That did not make any difference, so I decided to start afresh,
which explains the delay in replying.
I tried to follow the steps I took in the first attempt
carefully following the literature (to the extent I could
understand it!!). This time getmail delivers to maildrop
but maildrop puts all mail into /var/mail/user and I don't
understand why. Permissions and ownerships seem the same as
previously but the action is different.
I've tried altering /etc/login.defs and /etc/pam.d/login
and /etc/pam.d/ssh#, but that doesn't help. Something now
seems to be stopping maildrop looking in /etc/maildroprc
and /home/john/.mailfilter thus causing it to default to
/var/mail/user. I can find a lot of info on using getmail
with procmail and qmail but nothing detailed on using it
with maildrop (other than when employing domain boxes).
----------------
Global maildrop filter file
# Uncomment this line to make maildrop default to ~/Maildir for
# delivery- this is where courier-imap (amongst others) will look.
DEFAULT="$HOME/Maildir"
-rw-r--r-- 1 root root 187 Feb 16 2002 /etc/maildroprc
-rwxr-sr-x 1 root mail 159760 Feb 19 2002 /usr/bin/maildrop
Any suggestions on what else to try? I'm now convinced that I've
made some stupid fundamental error.
Are you sure your maildroprc is in the right directory? Unless you
changed --sysconfdir or --prefix when running ./configure it probably
should be in /usr/local/etc/maildroprc
To find out, just type in "man maildropfilter" and the file location
should be in the first line after "SYNOPSIS"