Hallo Peter,
At 14:36 27.04.04 +0200, you wrote:
>Hi foolks!
>
>I look for a good mailfilter for my vpopmail.
>
>My currently hae a bug with catch-all adresses:
>import EXT
>import HOST
>
>VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
>
>if (/^X-Spam-Status: *YES/)
>{
> exception {
> to "/var/spool/spam/"
> }
>}
>else
>{
> exception {
> to "$VHOME/Maildir/"
> }
>}
>
>The problem is the following:
>If someone acitivated CATCH-ALL in qmailadmin and some sends an email to
>an non-existing account,
>the email will be dropped from my mailfilter.
>
>The var $VHOME is not correct set because the mailadress is not
>correctly.
>So I need the target emailadresse, but dont know how to get this.
Schau Dir mal mein QMVC an, dann wirst Du (wahrscheinlich) auf die L�sung
kommen.
Zwei F�lle:
1. Du nutzt Qmails virtualdomains Machnismus.
domain1.com:vdomain1
Emails nach "[EMAIL PROTECTED]" werden zu "[EMAIL PROTECTED]".
Im qmail-local Environment (was Du abfragst) gilt dann folgendes:
[EMAIL PROTECTED]
LOCAL=vdomain1-user
HOST=domain1.com
USER=vdomain1
EXT=user
EXT2=user-IRGENDWAS
etc.
2. Setzt Du zugleich den qmail-users Mechanismus ein, wird
USER="-> user per qmail-newu"
Mit einem Shell-Kniff, der in meinem QMVC beschrieben ist, kannst du den
PREPEND loswerden.
mfg.
--eh.
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24