5 messages in net.sourceforge.lists.courier-users[courier-users] maildrop issues
FromSent OnAttachments
Jonathan NicholsApr 3, 2003 11:14 am 
Martin A. BrownApr 3, 2003 11:36 am 
Jonathan NicholsApr 3, 2003 12:25 pm 
Jon NelsonApr 4, 2003 7:02 am 
Jonathan NicholsApr 4, 2003 11:21 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:[courier-users] maildrop issuesActions...
From:Jonathan Nichols (jnic@pbp.net)
Date:Apr 3, 2003 11:14:26 am
List:net.sourceforge.lists.courier-users

Greetings, all - I've been having an ongoing battle with maildrop. Here's a post I sent to 2 other lists, but recieved no response. :(

----post----

After much Googling and trial & error, I got postfix to hand mail off to "maildrop" (turns out I needed to change the transport from virtual to maildrop) but I can't get any farther than that.

I have "virtual users" in /home/vmail, with everything set up to be /home/vmail/domain.com/user/.maildir - without maildrop, everything has been working fine. However, I need server-side filtering available.

Here's what I've been running into:

Apr 2 03:11:02 [maildrop] Cannot have world/group permissions on the filter file - for your own good. Apr 2 03:11:02 [postfix/pipe] 2B90ABB19: to=<phon@phoneboy.org>, relay=maildrop, delay=0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Cannot have world/group permissions on the filter file - for your own good. )

Great! It's going to protect me from myself. How nice!

So, I change the permission to "chmod 600 .mailfilter" thus removing world/group perms.

garbage vmail # pwd /home/vmail garbage vmail # ls -laF total 12 drwxr-xr-x 15 vmail vmail 496 Apr 1 06:47 ./ drwxr-xr-x 5 root root 144 Mar 20 20:23 ../ -rw------- 1 vmail vmail 44 Apr 2 03:16 .mailfilter drw------- 2 vmail vmail 120 Apr 2 01:33 .mailfilters/ drwxr-xr-x 2 vmail vmail 264 Mar 28 15:55 .razor/ drwx------ 2 vmail vmail 48 Mar 30 07:06 .spamassassin/ drwxr-x--- 3 vmail vmail 80 Mar 31 23:40 capitolgarage.com/

so, it should be reading .mailfilter and doing what it says. .mailfilter simply says "include /home/vmail/.mailfilters/$LOGNAME" for now. I read a short howto at http://sourceforge.net/mailarchive/message.php?msg_id=170745

If I change the permissions on .mailfilter, I get this:

Apr 2 03:18:38 [maildrop] Unable to open include file. Apr 2 03:18:38 [postfix/pipe] E0A48BC15: to=<phon@phoneboy.org>, relay=maildrop, delay=1, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open include file. )

Grr! Regardless of the permissions on the include file, I get this error. I thought "Maybe it's not filling in "$LOGNAME" (I still don't understand exactly where it grabs that from) so I tried specifying a particular file. Still no luck. :-(

I'm completely lost, but at least I'm a little bit farther down the road than I was earlier.

I still can't get it to look into the mysql db, either.. but if I can deal with flat files, that'll work for now.

Any suggestions?

Thanks, -Jonathan