Hi guys,
Today is a Mail Migration day hooray!
Mbox to Maildir migration Check : ).
Mailscanner to Virtualmin migration help! : (
I am trying to move away from Mailscanner and move over to the Virtualmin only spam and virus scanning.
When I try to enable the Spam Filtering feature I get the following :
Failed to save enabled features : The Procmail program needed for spam filtering does not appear to be installed on your system, or has not yet been set up properly in Webmin's Procmail Mail Filter module. If your system does not use spam filtering, it should be disabled in Virtualmin's module configuration page.
Please advise on how I should setup procmail. Currently I have postfix setup for delivery to Mailscanner via a header check : /^Received:/ HOLD I am sure this will need to be removed, but does Virtualmin expect something similar??
I tried finding an answer here : https://www.virtualmin.com/documentation/email/spam-av
But still need your assistance.
I can give you access to the system if need be.
Thanks,
~Jeremy
Comments
Submitted by xtremeservices on Sat, 06/11/2011 - 10:57 Comment #1
Here are my current Procmail Settings in Webmin.
Submitted by JamieCameron on Sat, 06/11/2011 - 12:19 Comment #2
That error suggests that you don't have
procmail
installed on your system at all.You should be able to install it with a command like
apt-get install procmail
The Virtualmin installer should have done this for you ..
Submitted by JamieCameron on Sat, 06/11/2011 - 12:20 Comment #3
Submitted by xtremeservices on Sat, 06/11/2011 - 12:24 Comment #4
It is installed on this system.
root@mars:~# apt-get install procmail Reading package lists... Done Building dependency tree
Reading state information... Done procmail is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
~Jeremy
Submitted by JamieCameron on Sat, 06/11/2011 - 13:27 Comment #5
OK, maybe Virtualmin is looking in the wrong place.
Use the command
which procmail
to find the location of the procmail command, and then go to Webmin -> Servers -> Procmail Mail Filter -> Module Config , and make sure the "Path to procmail program" is set correctly.Submitted by xtremeservices on Sun, 06/12/2011 - 02:11 Comment #6
That did the trick, it was strange because the path to procmail was just procmail. I modified it to /usr/bin/procmail.
*** Correction, it always worked...
~Jeremy
Submitted by JamieCameron on Sat, 06/11/2011 - 15:45 Comment #7
Perhaps /usr/bin wasn't in Webmin's search path? You can set that in the Webmin Configuration module.
Submitted by xtremeservices on Sat, 06/11/2011 - 16:08 Comment #8
I checked the webmin configuration module and verified that /usr/bin is in the Program Search Path.
~Jeremy
Submitted by xtremeservices on Sat, 06/11/2011 - 16:32 Comment #9
Ok Now I am getting this when trying to enable Spam Filtering :
Failed to save enabled features : SpamAssassin is configured to be run from the global Procmail configuration /etc/procmailrc, which is not needed as Virtualmin will set it up on a per-domain basis.
Here is my /etc/procmailrc
:0wi VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME EXITCODE=$? :0 * ?/usr/bin/test "$EXITCODE" = "73" /dev/null EXITCODE=0 :0 * ?/usr/bin/test "$VIRTUALMIN" != "" { INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN } DROPPRIVS=yes :0fw | /usr/bin/spamassassin :0 * ^X-Spam-Status: Yes $DEFAULT
Please let me know what I need to change. Thx!
~Jeremy
Submitted by andreychek on Sat, 06/11/2011 - 16:44 Comment #10
Howdy -- there's a few lines in your procmailrc file that are causing that error... these 5 lines at the end:
:0fw
| /usr/bin/spamassassin
:0
* ^X-Spam-Status: Yes
$DEFAULT
SpamAssassin is called elsewhere, so those particular lines in your procmailrc wouldn't be necessary (and would end up calling SpamAssassin twice).
Submitted by JamieCameron on Sat, 06/11/2011 - 16:45 Comment #11
Delete these lines :
:0fw
| /usr/bin/spamassassin
:0
* ^X-Spam-Status: Yes
$DEFAULT
Submitted by xtremeservices on Sat, 06/11/2011 - 17:06 Comment #12
What should my mailbox_command be?
I found this https://www.virtualmin.com/node/9426
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
Does the wrapper also apply to Ubuntu/debian?
If so, where can I get the procmail-wrapper?
Should /usr/bin/procmail have a mail group ownership? I chowned it to root:root.
Thx!
~Jeremy
Submitted by xtremeservices on Sat, 06/11/2011 - 17:14 Comment #13
NM, I grabbed the wrapper off my install.sh test box.
I also chmoded 6755 procmail and chowned root:home procmail.
~Jeremy
Submitted by andreychek on Sat, 06/11/2011 - 17:14 Comment #14
That's the correct mailbox command.
You would indeed want procmail-wrapper on Debian/Ubuntu, you can install it by running this command:
apt-get install procmail-wrapper
Submitted by xtremeservices on Sat, 06/11/2011 - 19:37 Comment #15
)
~Jeremy
Submitted by andreychek on Sat, 06/11/2011 - 19:41 Comment #16
Great, I'm glad that's working for you, thanks for the update!
Submitted by Issues on Sun, 06/26/2011 - 05:27 Comment #17
Automatically closed -- issue fixed for 2 weeks with no activity.