On Tue, Mar 4, 2008 at 10:52 AM, Alessandro Vesely <[EMAIL PROTECTED]> wrote:
> rupert wrote:
>  > On Tue, Mar 4, 2008 at 10:05 AM, Alessandro Vesely <[EMAIL PROTECTED]> 
> wrote:
>
> >> > /etc/maildroprc(12): ISDIR="0"
>  >>  > maildrop: Filtering through `if [ -d "$VHOME/$USERDOMAIN/$ACCOUNT"
>  >>  > ];then ISDIR="1"; fi`
>  >>
>
> >>  In order to get results from a subprocess one can
>  >>  * check its return code,
>  >>  * retrieve its output,
>  >>  * [...]
>
> >>
>  > but then should this work in the first place
>  >
>  > `test -d "$VHOME/$USERDOMAIN/$ACCOUNT"`
>  > if(!$RETURNCODE)
>  > {
>  >    "only gets executed if the folder does "not" exist"
>  +    "only gets executed if the folder exists"
>  > }
>
>  `test` exits with status 0 if successful. Check RETURNCODE in
>  http://www.courier-mta.org/maildropfilter.html#id326037
>
>  Notice that conditional constructs in the shell (i.e. if [...]; then)
>  treat a 0 exit status as "true" because the exit status of 0 usually
>  means success. That is the opposite of what most programming languages
>  do (AFAIK all except Java, which doesn't automatically promote integer
>  to boolean.)
>
>
>
thx for that info.
I dont know what we did wrong, but now it seems to work fine.

Now I only would like postfix to execute the query for the quota which
ist located in the user table,
my mysql logfiles show that the query never was run.
When i do a maildirmake -q 5000S, on ech delivery the maildirsize file
gets updated,
but this file is not created automatically like it should be :(


virtual_mailbox_limit_maps =
mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is
over quota."
virtual_overquota_bounce = yes
# virtual_mailbox_limit_inbox = yes
#virtual_maildir_extended = yes
virtual_create_maildirsize = yes
#virtual_maildir_suffix = Maildir/


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  -------------------------------------------------------------------------
>  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-users mailing list
>  [email protected]
>  Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>

-------------------------------------------------------------------------
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-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to