Procmail "Insecure dependency" error & no spamd

Hi,

I installed Virtualmin on CentOS 5.3 using the install.sh script. Everything has been working great, EXCEPT:

Incoming email does not contain a x-spam header. I also am getting tons of spam. So I think spamd isn’t being called. I also turned logging on with clamav, and saw no entries in syslog or the clamd log file. This leads me to conclude spam/virus filtering is not working.

After a little debugging, I noticed the following error in my logs when receiving messages (I censored the email addresses):

[code:1]
==> maillog <==
Apr 25 18:55:54 hyperspace postfix/smtpd[11357]: connect from li66-94.members.linode.com[74.207.224.94]
Apr 25 18:55:54 hyperspace postfix/smtpd[11357]: 4C54E3F58B: client=li66-94.members.linode.com[74.207.224.94]
Apr 25 18:55:54 hyperspace postfix/cleanup[11385]: 4C54E3F58B: message-id=<21B20C71-5C50-40BB-B7FE-955E33F4390A@address.com>
Apr 25 18:55:54 hyperspace postfix/qmgr[8866]: 4C54E3F58B: from=<email@address.com>, size=1296, nrcpt=1 (queue active)
Apr 25 18:55:54 hyperspace postfix/smtpd[11357]: disconnect from li66-94.members.linode.com[74.207.224.94]

==> procmail.log <==
Insecure dependency in exec while running with -T switch at /etc/webmin/virtual-server/lookup-domain.pl line 17.
procmail: Program failure (255) of "/etc/webmin/virtual-server/lookup-domain.pl"

==> maillog <==
Apr 25 18:55:54 hyperspace postfix/local[11418]: 4C54E3F58B: to=<someone.somewhere@address.com>, orig_to=<email@address.com>, relay=local, delay=0.1, delays=0.02/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Apr 25 18:55:54 servername postfix/qmgr[8866]: 4C54E3F58B: removed

==> procmail.log <==
From email@address.com Sat Apr 25 18:55:54 2009
Subject: test
Folder: /home/username/domains/address.com/homes/someone/Maildir/ne 1389
Time:1240700154 From:email@address.com To:email@address.com User:username.domain Size:1443 Dest:/home/username/domains/address.com/homes/username/Maildir/new/1240700154.11419_0.address.com Mode:None
[/code:1]

A little more investigation showed that this lookup-domain.pl script should retrieve a procmailrc for the site. It would seem that the error "Insecure dependency in exec while running with -T switch at /etc/webmin/virtual-server/lookup-domain.pl line 17" is definitely the culprit. Any ideas how I can resolve this? Thanks,

Daniel Jabbour

I fixed it!

I needed to edit main.cf in /etc/procmail and change the command line to:

[code:1]mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME[/code:1]