Procmail problem


We have:

# uname -a
FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008

Webmin version 1.441
Virtualmin version 3.64 Pro
Theme version 6.5

# perl -v
This is perl, v5.8.8 built for amd64-freebsd

Path to Perl /usr/bin/perl

# pkg_info| grep postfix

# pkg_info| grep procmail

And in '':

# cat /usr/local/etc/postfix/ | grep "mailbox_command ="
mailbox_command = /usr/local/bin/procmail -o -a $DOMAIN -d $LOGNAME

When an e-mail will come, then is picked up by procmail:

Dec 24 12:07:37 xxx procmail[33758]: Attempt to fake stamp by "basia-vibovit"
Dec 24 12:07:37 xxx postfix/local[33756]: E378A179B9EC: to=, relay=local, delay=0.21, delays=0.12/0.02/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/local/bin/procmail -o -a $DOMAIN -d $LOGNAME)

But in procmail log:

Insecure $ENV{PATH} while running with -T switch at /usr/local/etc/webmin/virtual-server/ line 12.
procmail: Program failure (255) of "/usr/local/etc/webmin/virtual-server/"

It causes the fact that the procmail isn't taking and he isn't using configurations defined for individual domain in /usr/local/etc/webmin/virtual-server/procmail/ directory.

Piotr 'PeleoS' Matuszczyk

Closed (fixed)