

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
6 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Maildrop deliver and ...
![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread 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't | Actions... |
|---|---|---|
| From: | Num ber (numb...@hotmail.com) | |
| Date: | Mar 19, 2008 1:03:21 pm | |
| List: | net.sourceforge.lists.courier-maildrop | |
Thanks,
But, that don't work, i don't understand :
`test -r $DEFAULT.mailfilter`
if( $RETURNCODE == 0 ) { log "(==) Including $HOME/$DEFAULT.mailfilter" }
And on the log file "(==) Including ..." was write, it means he pass the test... If he pass the test why they don't include file ?
The file exist, and have read permission...
I realy don't understand...
----------------------------------------
Date: Wed, 19 Mar 2008 15:25:47 -0300 From: fcat...@contactnet.com.br To: numb...@hotmail.com Subject: Re: [maildropl] Maildrop deliver and quota work, but .mailfilter don't
Thats pretty weird.
Anyway, maybe... I'm telling JUST MAYBE ... maildrop might be running in a chroot jail together with postfix, in this case the correct path is just /virtual/soez/administrateur/
Try to include with this path!
Good luck!
Num ber escreveu:
I just finish to work,
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: logw...@soez.be/ ) { to "$DEFAULT/.INBOX.LogWatch" log moved" }
Thanks for your help !!!
------------------------------------------------------------------------
Date: Wed, 19 Mar 2008 09:40:23 -0300 From: fcat...@contactnet.com.br To: cour...@lists.sourceforge.net 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: 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
-------------------------------------------------------------------------
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 Cour...@lists.sourceforge.net 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 Cour...@lists.sourceforge.net 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 Cour...@lists.sourceforge.net 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 Cour...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/courier-maildrop
_________________________________________________________________ Changez votre Live en un clic ! http://get.live.com







