Did you try to put #!/bin/sh at the beginning of the line?


Remo Mattei
Network Security Engineer
cell 801-209-8554
email [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of spork
Sent: Sunday, July 20, 2003 5:12 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [vchkpw] Re: [qmailadmin-devel] Updated vpopmail -- please review
before public announcement

On Sat, 19 Jul 2003, Jeff Hedlund wrote:

> This definitely needs to be looked into as a bug, but in the meantime--
> why don't you check out my mailfilter script here:
> http://marc.theaimsgroup.com/?l=qmailadmin&m=105689448125793&w=2
>
> You are calling maildrop from the directory where the Maildir is, why
> not use the PWD environment var instead of running vuserinfo?
>
> That script also picks apart the PWD to get EXT and HOST.

What shell are you using within maildrop?  I modified my filter and it
seems something is not quite working:

Modifying my filter like so:

----
SHELL="/bin/sh"
VHOME="$PWD/Maildir/"
USERNAME=`echo ${PWD##*/}`
USERHOST=`PWDTMP=${PWD%/*}; echo ${PWDTMP##*/}`
#VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
logfile
"$VHOME/maildrop.log"
log "====="
if ( $SIZE < 262144 )
{
        exception {
                #xfilter "/usr/local/bin/spamc -f -u [EMAIL PROTECTED]"
                xfilter "/usr/local/bin/spamc -f -u [EMAIL PROTECTED]"
}
[etc]
----

I get the following in my qmail log when a message arrives:

2003-07-20 19:04:02.689482500 delivery 13903: deferral:
Message_start_at_59_bytes,[EMAIL PROTECTED]/mail
drop:_Attempting_/usr/local/etc/mailfilter.user/maildrop:_Filtering_through_
`echo_${PWD##*/}`/maildrop:_Filtering_through_`PWDTMP=${PWD_/*};_echo_${PWDT
MP##*/}`//usr/local/bin/maildrop:_Unable_to_create_log_file./

Thanks,

Charles



> Jeff
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> _______________________________________________
> qmailadmin-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/qmailadmin-devel
>



Reply via email to