2 messages in net.sourceforge.lists.courier-maildrop[maildropl] was mailfilter syntax error
FromSent OnAttachments
john gennardMar 7, 2003 4:19 am 
Devin RubiaMar 7, 2003 5:18 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] was mailfilter syntax errorActions...
From:john gennard (jon@clara.co.uk)
Date:Mar 7, 2003 4:19:06 am
List:net.sourceforge.lists.courier-maildrop

On Tue, 4 Mar 2003 Devin Rubia wrote:-

[snip]

Sam wrote the program so he is in a position to know. Also, can you give us the output of:

ls -ld /home/john/Maildir ls -l /home/john/Maildir ls -l /home/john/Maildir/debian

etc? That way we can see if the permissions on your directories are set up correctly and if the maildirs are properly created.

Output follows:-

---------- john@relay:~$ ls -ld /home/john/Maildir drwxr-xr-x 11 john john 4096 Feb 28 12:22 /home/john/Maildir

[SNIP]

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.

John.