|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Maildrop deliver and quota work, but .mailfilter don'tHello, 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 admin@... maildrop -V9 -d admin@... maildrop: authlib: groupid=9000 maildrop: authlib: userid=9000 maildrop: authlib: logname=admin@..., 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: logwatch@.../ ) 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Courier-maildrop mailing list Courier-maildrop@... https://lists.sourceforge.net/lists/listinfo/courier-maildrop |
|
|
|
|
|
Re: Maildrop deliver and quota work, but .mailfilter don'tThat'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: fcatunda@... >> To: number_85_@... >> 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 admin@... >>> maildrop -V9 -d admin@... >>> maildrop: authlib: groupid=9000 >>> maildrop: authlib: userid=9000 >>> maildrop: authlib: logname=admin@..., 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: logwatch@.../ ) >>> 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 >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Courier-maildrop mailing list >>> Courier-maildrop@... >>> https://lists.sourceforge.net/lists/listinfo/courier-maildrop >>> >>> > > _________________________________________________________________ > Envoyez vos voeux de façon originale grâce aux nombreuses solutions de Windows Live ! > http://get.live.com > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Courier-maildrop mailing list > Courier-maildrop@... > https://lists.sourceforge.net/lists/listinfo/courier-maildrop > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Courier-maildrop mailing list Courier-maildrop@... https://lists.sourceforge.net/lists/listinfo/courier-maildrop |
|
|
Re: Maildrop deliver and quota work, but .mailfilter don'tI just finish to work, Thanks for your help !!!I try with log to watch what goes wrong.. I now have this : (==) ok (==) Including /var/spool/postfix/virtual/soez.be/administrateur/.mailfilter They found the .mailfilter, but they never include the file.. logfile maildrop.log `[ -d $DEFAULT ] || (maildirmake $DEFAULT && maildirmake -f Spam $DEFAULT && maildirmake -f sent-mail $DEFAULT)` `test -r $HOME/$DEFAULT.mailfilter` log "(==) ok" if( $RETURNCODE == 0 ) { log "(==) Including $HOME/$DEFAULT.mailfilter" exception { include $HOME/$DEFAULT.mailfilter } } et per user .mailfilter : logfile maildrop.log log "(==) include" `test -d $HOME/$DEFAULT.INBOX.LogWatch if ( $RETURNCODE == 1 ) { `maildirmake -f .INBOX.LogWatch $DEFAULT` `echo LogWatch >> $DEFAULT/subscriptions` log "Logwatch dpon't exist" } if ( /^From: logwatch@.../ ) { to "$DEFAULT/.INBOX.LogWatch" log moved" } > Date: Wed, 19 Mar 2008 09:40:23 -0300 > From: fcatunda@... > To: courier-maildrop@... > Subject: Re: [maildropl] Maildrop deliver and quota work, but .mailfilter don't > > 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: fcatunda@... > >> To: number_85_@... > >> 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 admin@... > >>> maildrop -V9 -d admin@... > >>> maildrop: authlib: groupid=9000 > >>> maildrop: authlib: userid=9000 > >>> maildrop: authlib: logname=admin@..., 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: logwatch@.../ ) > >>> 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 > >>> ------------------------------------------------------------------------- > >>> This SF.net email is sponsored by: Microsoft > >>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>> _______________________________________________ > >>> Courier-maildrop mailing list > >>> Courier-maildrop@... > >>> https://lists.sourceforge.net/lists/listinfo/courier-maildrop > >>> > >>> > > > > _________________________________________________________________ > > Envoyez vos voeux de façon originale grâce aux nombreuses solutions de Windows Live ! > > http://get.live.com > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Courier-maildrop mailing list > > Courier-maildrop@... > > https://lists.sourceforge.net/lists/listinfo/courier-maildrop > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Courier-maildrop mailing list > Courier-maildrop@... > https://lists.sourceforge.net/lists/listinfo/courier-maildrop Les partager, au lieu de les laisser au fin fond d'un fichier... Qu'allez-vous faire de vos photos ? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Courier-maildrop mailing list Courier-maildrop@... https://lists.sourceforge.net/lists/listinfo/courier-maildrop |
|
|
|
|
|
|
| Free Forum Powered by Nabble | Forum Help |