6 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Maildrop deliver and ...
FromSent OnAttachments
Num berMar 19, 2008 4:31 am 
Num berMar 19, 2008 5:11 am 
"Fábio M. Catunda"Mar 19, 2008 5:40 am 
Num berMar 19, 2008 10:38 am 
Num berMar 19, 2008 1:03 pm 
Num berMar 20, 2008 3:01 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 deliver and quota work, but .mailfilter don'tActions...
From:"Fábio M. Catunda" (fcat@contactnet.com.br)
Date:Mar 19, 2008 5:40:00 am
List:net.sourceforge.lists.courier-maildrop

That's what I thought, I had this problem too!

To solve it, I just put an include line in /var/spool/postfix/virtual/.mailfilter with some parameters, something like this:

/^Delivered-To:.*/ getaddr($MATCH) =~ /^.*/; MAILADDR = tolower($MATCH) USER = `/bin/echo $MAILADDR | /usr/bin/cut -f1 -d'@'` DOMAIN = `/bin/echo $MAILADDR | /usr/bin/cut -f2 -d'@'`

include "/var/virtual/$DOMAIN/$USER/.mailfilter"

The tolower() is optional and break the mail RFC, but I like it couse it avoid the creation of - for exemple - an UsEr maildir!

I'm using postfix, thats why I search for "Delivered-To" and not Envelope-To or something like this!

Probably there is a way to find USER and DOMAIN with some maildrop regexp, but I'm no very good with it!

[]'s, FMC!

Num ber escreveu:

Sorry...

I reply to fast, it log but they never include .mailfilter because $HOME don't
go to the user maildir :

(==) /var/spool/postfix/virtual (==) Including /var/spool/postfix/virtual/.mailfilter

$HOME = /var/spool/postfix/virtual/

What i need to use for they search in /var/spool/postfix/virtual/domaine/user/

yes.

Date: Wed, 19 Mar 2008 08:35:46 -0300 From: fcat@contactnet.com.br To: numb@hotmail.com Subject: Re: [maildropl] Maildrop deliver and quota work, but .mailfilter don't

Your /var/spool/postfix/virtual/.mailfilter is including the user .mailfilter?

Try to log step-by-step what is happening, log the result of your "ifs" to be sure that thos conditions are beeing satisfied.

Your instalation looks fine to me, maybe you just mismatched some little thing!

[]'s, FMC!

Num ber escreveu:

Hello,

For begining i would like to excuse my self if my english is bad... i try to do
the best and it's not enough..

I have a problem with maildrop, i use it for delivering mail and i have quota
support, everything work exepting mail filter..

This is my configuration :

Every account was virtual (mysql) and in this directory : /var/spool/postfix/virtual/domaine_name/account_name

-> eg : /var/spool/postfix/virtual/test.be/admin

This is my master.cf : maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -w 90 -d ${user}@${nexthop}
${extension} ${recipient} ${user} ${nexthop} ${sender}

-w 90 work for quota alert..

And i have this in main.cf : virtual_transport = maildrop

Maildrop work fine : [root@test admin]# maildrop -V9 -d adm@test.be maildrop -V9 -d adm@test.be maildrop: authlib: groupid=9000 maildrop: authlib: userid=9000 maildrop: authlib: logname=adm@test.be, home=/var/spool/postfix/virtual,
mail=test.be/admin/ maildrop: Changing to /var/spool/postfix/virtual

I have a .mailfilter in /var/spool/postfix/virtual for everyone (i already read
this .. ) and one in /var/spool/postfix/virtual/test.be/admin/ for admin user only

This is my /var/spool/postfix/virtual/test.be/admin/.mailfilter :

`test -d $HOME/.INBOX.LogWatch`

if ( $RETURNCODE == 1 ) { `maildirmake -f .INBOX.LogWatch $HOME/` `echo LogWatch>> $HOME/subscriptions` }

if ( /^From: logw@soez.be/ ) to "$HOME/.INBOX.LogWatch"

And my /var/spool/postfix/virtual.mailfilter :

`[ -d $DEFAULT ] || (maildirmake $DEFAULT && maildirmake -f Spam $DEFAULT &&
maildirmake -f sent-mail $DEFAULT)`

`test -r $HOME/.mailfilter`

if( $RETURNCODE == 0 ) { log "(==) Including $HOME/.mailfilter" exception { include $HOME/.mailfilter } }

But when it's enable mail never come even in INBOX ..

thanks for your help..

_________________________________________________________________ Changez votre Live en un clic ! http://get.live.com

_________________________________________________________________ Envoyez vos voeux de façon originale grâce aux nombreuses solutions de Windows
Live ! http://get.live.com