Hello.
We have:
# uname -a
FreeBSD xxx.xxx.xxx 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
postfix-2.3.14,1
# pkg_info| grep procmail
procmail-3.22_6
And in 'main.cf':
# cat /usr/local/etc/postfix/main.cf | 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/lookup-domain.pl line 12.
procmail: Program failure (255) of "/usr/local/etc/webmin/virtual-server/lookup-domain.pl"
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