13 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] maildrop & quota & fo...
FromSent OnAttachments
masterMar 18, 2004 11:57 am 
Rick RomeroMar 18, 2004 12:47 pm 
masterMar 18, 2004 1:31 pm 
masterMar 18, 2004 1:40 pm 
Rick RomeroMar 18, 2004 1:44 pm 
masterMar 18, 2004 1:59 pm 
masterMar 18, 2004 2:41 pm 
masterMar 18, 2004 3:08 pm 
masterMar 18, 2004 3:39 pm 
Rick RomeroMar 18, 2004 6:38 pm 
masterMar 19, 2004 1:22 am 
masterMar 19, 2004 4:15 am 
Rick RomeroMar 19, 2004 5:06 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:Re: [maildropl] maildrop & quota & forward (autorespond)Actions...
From:Rick Romero (ri@havokmon.com)
Date:Mar 18, 2004 12:47:54 pm
List:net.sourceforge.lists.courier-maildrop

Did I just reply to you? Sorry that should have gone to the list.

My .qmail-default (for the whole domain) looks like: |maildrop mailfilter | /usr/home/vpopmail/bin/vdelivermail '' /usr/home/vpopmail/domains/havokmon.com/rick

I had to put 'mailfilter' into the domain directory.. wouldn't work as a reference for some reason.

My mailfilter script is: SHELL="/bin/sh" VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`

`test -d $VHOME/Maildir/.Spam` if ( $RETURNCODE == 1 ) { `/usr/local/bin/maildirmake -f Spam $VHOME/Maildir` }

#`echo Inbox.Spam >> $VHOME/Maildir/courierimapsubscribed` #`echo "WTF" >> /home/vpopmail/domains/vfemail.net/test/Maildir/testfile`

if (/^X-Spam-Status: Yes*/) { exception { # to "$VPOP" EXITCODE = "99" to "$VHOME/Maildir/.Spam/" exit } # ah well, I guess they'll just have to live with disappointment }

But as of this morning it stopped working on one machine (I have two clustered). Not sure why yet.

Rick

On Thu, 2004-03-18 at 14:29, master wrote:

what does look like your .qmail-defaut ? mine is : |preline /usr/local/bin/maildrop /etc/maildrop so i should put : |preline /usr/local/bin/maildrop /etc/maildrop | /usr/local/vpopmail/bin/vdelivermail ''

and in /etc/maildrop : if (/^X-Spam-Status: Yes*/) { # then try delivering it to a Spam folder exception { # to "$VPOP" EXITCODE = "99" to "$VHOME/Maildir/.Spam/" exit } }

?

That looks right to me, but I think vdelivermail requires a 2nd option (?) bounce-no-mailbox or a directory.

Of course, it doesn't seem to be working right now from one machine out of a two machine cluster (very odd, brand new today ;)

you mean it doesn t work if the machine is in cluster or ?

No - it's being weird right now. It's been working for the last month (I thought I was replying on a different list ;) but this morning my new 'MX' machine stopped working with maildrop. The main machine (the one with the master MySQL server, and exporting the dirs via NFS ) works fine. MX says: 2004-03-18 14:42:51.608714500 starting delivery 29: msg 512721 to local havo@havokmon.com 2004-03-18 14:42:51.608885500 status: local 1/10 remote 0/255 2004-03-18 14:42:51.746327500 delivery 29: deferral: maildrop:_Unable_to_open_mailbox./

It does that even on non-Spam emails. Not sure why maildrop wants to open my mailbox while it's just processing the message.

Oddly enough a -V results in a 'mailbox is world-writable' when it isn't... Some funky NFS issue maybe?

But the main machine works fine. <shrug>

Rick

----- Original Message ----- From: "Rick Romero" <ri@havokmon.com> To: "master" <mas@tyranz.com> Sent: Thursday, March 18, 2004 9:13 PM Subject: Re: [maildropl] maildrop & quota & forward (autorespond)

On Thu, 2004-03-18 at 13:58, master wrote:

and my others questions how with this configuration can we make work the .qmail file inside the directory ? to make feature from qmailadmin work (the autorespond , the forwaders etc) thanks

I just let it fall through to vdelivermail from my .qmail-default

if (/^X-Spam-Status: Yes*/) { # then try delivering it to a Spam folder exception { # to "$VPOP" EXITCODE = "99" to "$VHOME/Maildir/.Spam/" exit } }

Then the user's .qmail file is still honored - if it's not Spam.

Of course, it doesn't seem to be working right now from one machine out of a two machine cluster (very odd, brand new today ;)