I’ve been having problems with the spamassassin plugin for quite some time now. I’ve narrowed it down to a procmail problem, but I haven’t been able to figure out what. I every couple days pick it up and try to manually trace where the mail might be going (procmail is a bit of a mystery to me).
But I’ve been able to isolate the problem to the fact that the lookup-domain.pl script (any of 3) is not firing. I finally think the problem is /etc/procmailrc
Here is what /etc/procmailrc looks like
[code:1]# Use maildir-style mailbox in user’s home directory
LOGFILE=/var/log/procmail.log
TRAP=//etc/webmin/virtual-server/procmail-logger.pl
:0wi
VIRTUALMIN=|//etc/webmin/virtual-server/lookup-domain.pl $LOGNAME
:0
- ?/usr/bin/test "$VIRTUALMIN" != ""
{
INCLUDERC=//etc/webmin/virtual-server/procmail/$VIRTUALMIN
}
ORGMAIL=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
DROPPRIVS=yes
:0
$DEFAULT
:0 - ^X-Spam-Status: Yes
$DEFAULT[/code:1]
and the log output looks like
[code:1]procmail: Couldn’t read “//etc/webmin/virtual-server/procmail/running /etc/webmin/virtual-server/lookup-domain.pl”
From someone@somewhere.com Wed Jan 23 15:19:34 2008
Subject: Some crazy subject
Folder: /home/domain/homes/tom/Maildir/new/1201123174.24746_0.salvo 2763
Time:1201123174 From:«»someone@somewhere.com To:tom@domain.com User:tom.domain Size:2813 Dest:/home/domain/homes/tom/Maildir/new/1201123174.24746_0.myserveraddrss.mydomain.com Mode:None[/code:1]
that line
procmail: Couldn’t read “//etc/webmin/virtual-server/procmail/running /etc/webmin/virtual-server/lookup-domain.pl”
looks suspicious
and I’ve tried tracing it many times.
And I think it has to do with this line in procmailrc
VIRTUALMIN=|//etc/webmin/virtual-server/lookup-domain.pl $LOGNAME
I tried changing that line to
VIRTUALMIN=//etc/webmin/virtual-server/lookup-domain.pl $LOGNAME
But i think that was more disastrous because i think the mail would get lost
this is what the log output looked like
[code:1]procmail: Skipped "sam.domain"
From acoolguy@anotherplace.com Wed Jan 23 15:27:39 2008
Subject: Re: Fwd: I like procmail
Folder: VIRTUALMIN=//etc/webmin/virtual-server/lookup-domain.pl 0
Time:1201123659 From:acoolguy@anotherplace.com To:«»sam@domain.com User:«»sam.domain Size:5429 Dest:VIRTUALMIN=//etc/webmin/virtual-server/lookup-domain.pl Mode:None
[/code:1]
That
Dest:VIRTUALMIN=//etc/webmin/virtual-server/lookup-domain.pl Mode:None
is the sad part. Do messages that procmail fail to process go to some kind of purgatory somewhere?
I have also tried having Virtualmin reinstall the default procmail, but since virtualmin is a nice guy, it leaves it alone.
Any ideas? anyone?