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:master (mas@tyranz.com)
Date:Mar 19, 2004 1:22:43 am
List:net.sourceforge.lists.courier-maildrop

but if you do that you got 1 or 2 emails ? (the only way for me to work is to add vdevermail in .qmail-defaut and i get 2 emails, if i put to VPOP i get nothing) really strange :)

----- Original Message ----- From: "Rick Romero" <ri@havokmon.com> To: "master" <mas@tyranz.com> Cc: <cour@lists.sourceforge.net>; <mail@simerson.net> Sent: Friday, March 19, 2004 3:38 AM Subject: Re: [maildropl] maildrop & quota & forward (autorespond)

HA! Look at that. I set maildrop to -V5 and I was getting the same damn thing on my mx1 machine. It was trying to deliver to /var/mail/vpopmail.

Why this changed all of a sudden, I have no clue. Why it works on my main machine as is, I have no clue.

I do have a solution though - and it was already in the mailfilter script: SHELL="/bin/sh" VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST` MAILDIR=$VHOME/Maildir

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

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

Add the to $VPOP at the end, and maildrop will execute vdelivermail instead of exiting cleanly (like it should -dammit) and running it. Or maybe put 'exit' at the end? <shrug> Is this method best practice? Seems to me it should exit cleanly at the end - in some way. Whatever. Works for me.

Quoting master <mas@tyranz.com>:

well i have news it seem that i had a old sendmail program at /usr/sbin/sendmail (i always thought cp replace it but not) but i still have a problem now i get the mail but it still goes to to /var/mail/vpopmail so i have two mails where can it come from ? i call only one prog :)

----- Original Message ----- From: "master" <mas@tyranz.com> To: <cour@lists.sourceforge.net> Sent: Thursday, March 18, 2004 11:42 PM Subject: Re: [maildropl] maildrop & quota & forward (autorespond)

not much :( in my /var/qmail/alias i have only a .qmail-postmaster (empty) and a .qmail-root that redirect to one of my email it s all so i don t understand why it deliver to a mbox when i put a maildrop command :( it does the same if i use procmail , anyone have a suggest ?

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

Does this help any: http://www.mail-archive.com/vchkpw@inter7.@

Being delivered to an mbox ? Never had that happen.. :(

On Thu, 2004-03-18 at 15:41, master wrote:

the log say :

IF_evaluated,_result=0/maildrop:_Delivering_to_/var/mail/vpopmail/maildrop:_

Flock()ing_/var/mail/vpopmail./maildrop:_Appending_to_/var/mail/vpopmail./ma

ildrop:_Delivery_complete./did_0+0+1/ but why did he put it on /var/mail/vpopmail ??

----- Original Message ----- From: "master" <mas@tyranz.com> To: <cour@lists.sourceforge.net> Sent: Thursday, March 18, 2004 10:33 PM Subject: Re: [maildropl] maildrop & quota & forward (autorespond)

well i have try like you said too but i still don t get emails :( ar 18 22:28:27 web qmail: 1079645307.359651 info msg 560721:

bytes

1021

from

mas@testdom.com qp 44329 uid 82 Mar 18 22:28:27 web qmail: 1079645307.362870 starting delivery

2371:

msg

560721 to local test@testdom.com Mar 18 22:28:27 web qmail: 1079645307.363892 status: local 1/10

remote

1/20

and i get no mail at all, i have try like you said : .qmail-default |/usr/local/bin/maildrop maildrop |/usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox

maildrop : SHELL="/bin/sh" VPOP="| /usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox" VHOME=`/usr/local/vpopmail/bin/vuserinfo -d $EXT@$HOST`

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

if (/^X-Spam-Status: Yes*/) { exception { EXITCODE = "99" to "$VHOME/Maildir/.Spam/" exit } }

so where am i wrong ?

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

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 ;)

Rick

------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins,

President

and

CEO

of

GenToo technologies. Learn everything from fundamentals

to

system

administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

https://lists.sourceforge.net/lists/listinfo/courier-maildrop

------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and

CEO

of

GenToo technologies. Learn everything from fundamentals to system

administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and

CEO

of

GenToo technologies. Learn everything from fundamentals to system

administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system

administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click