Email Filters do not appear to be working

7 posts / 0 new
Last post
#1 Wed, 03/11/2009 - 10:53
paulgit

Email Filters do not appear to be working

I have entered some email filters in Usermin and I can see the .procmailrc in the corresponding user home directory.

However when email is received for the particular user the user specific procmail rules do not appear to be working.

Do they need to be enabled somewhere? If so where?

I am running Virtualmin 3.66.gpl on Hardy. I am not running SpamAssassin or VirusScanning if that maybe the problem?

Any help would be appreciated.

Paul

Wed, 03/11/2009 - 10:54
andreychek

Hi Paul,

Yeah, you should be able to process procmail goodies with or without SpamAssassin and ClamAV.

Do you think you could post the contents of your .procmailrc file? That might help us figure out where the issue lies.

Thanks!
-Eric

Sun, 06/07/2009 - 07:46 (Reply to #2)
paulgit

OK, my /etc/procmailrc is as follows:

[code:1]
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
}
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
DROPPRIVS=yes
:0
$DEFAULT
[/code:1]

I think it is something to do with the last 2 lines

[code:1]
:0
$DEFAULT
[/code:1]

I think this disables looking at the user configuration.

The user .procmailrc is as follows:-

[code:1]
:0
* ^List-Id:.*gpodder-bugs.lists.berlios.de
"$HOME/Maildir/.Mailing Lists.gPodder-bugs/"
:0
* ^List-Id:.*gpodder-devel.lists.berlios.de
"$HOME/Maildir/.Mailing Lists.gPodder-devel/"
:0
* ^List-Id:.*.mailman.lug.org.uk
"$HOME/Maildir/.Mailing Lists.MKLUG/"
:0
$HOME/Maildir/.All/
[/code:1]

I added the last rule as a catch-all to prove if the filter is working, however all mail is delivered to the inbox!

Paul

Sun, 06/07/2009 - 07:46 (Reply to #3)
paulgit

OK, my /etc/procmailrc is as follows:

[code:1]
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
}
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
DROPPRIVS=yes
:0
$DEFAULT
[/code:1]

I think it is something to do with the last 2 lines

[code:1]
:0
$DEFAULT
[/code:1]

I think this disables looking at the user configuration.

The user .procmailrc is as follows:-

[code:1]
:0
* ^List-Id:.*gpodder-bugs.lists.berlios.de
"$HOME/Maildir/.Mailing Lists.gPodder-bugs/"
:0
* ^List-Id:.*gpodder-devel.lists.berlios.de
"$HOME/Maildir/.Mailing Lists.gPodder-devel/"
:0
* ^List-Id:.*.mailman.lug.org.uk
"$HOME/Maildir/.Mailing Lists.MKLUG/"
:0
$HOME/Maildir/.All/
[/code:1]

I added the last rule as a catch-all to prove if the filter is working, however all mail is delivered to the inbox!

Paul

Wed, 03/11/2009 - 11:25 (Reply to #4)
paulgit

OK, that seems to have solved it. I was actually looking for an option in Virtualmin to turn this on or off. But atleast I got there in the end.

Thank you so much for your quick replies!

Paul

Wed, 03/11/2009 - 11:28 (Reply to #5)
Joe
Joe's picture

I'm sure there is such an option (because folks seem to turn it on pretty frequently), but I don't actually know what it is. ;-)

--

Check out the forum guidelines!

Wed, 03/11/2009 - 11:22
Joe
Joe's picture

You're exactly right. This bit shouldn't be there:

:0
$DEFAULT

That pretty much says, "No matter what happens, always drop the mail into $DEFAULT". Which...isn't quite what we want. I see this quite often, but I still have no idea where it comes from (I'm guessing it's some option in the Procmail module that adds it, and we probably ought to figure out which one and make the label more clear).

--

Check out the forum guidelines!

Topic locked