Usermin - Filter and Forward Mail

12 posts / 0 new
Last post
#1 Thu, 04/08/2010 - 09:36
reQuorter

Usermin - Filter and Forward Mail

Hello,

I wanted to make some forward rules for mail account, but I got an error in Usermin @ "Filter and Forward Mail":

"Warning - The system is configured to not process user-defined mail filters. Filters defined here will not be used."

Do I need "Spam filtering" to be enabled in Virtualmin to make those forward rules or something else?

Thu, 04/08/2010 - 11:13
andreychek

Howdy,

How did you go about installing Usermin (and perhaps Virtualmin)? Did you use the Virtualmin install.sh script?

That would normally setup procmail for you -- and procmail not being used by Postfix/Sendmail is one way the above message could come up.

-Eric

Thu, 04/08/2010 - 19:58
reQuorter

Yes, I've installed Virtualmin via install.sh script @ Debian 5.0 Lenny.

Email is working fine, but I really need those forward rules... so how can I setup procmail for my Postfix?

Thu, 04/08/2010 - 23:46
andreychek

Okay, I'm suspicious that something may be awry in the procmail config.

Can you post your procmailrc file? That's in /etc/procmailrc.

Thanks!

-Eric

Fri, 04/09/2010 - 04:42
reQuorter

My /etc/procmailrc

LOGFILE=/var/log/procmail.log
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
DROPPRIVS=yes
:0
$DEFAULT

And in /var/log/procmail.log I see a lot of log with my emails, everthing seems fine there.

Wed, 05/05/2010 - 11:25
rgustafson

Hi, If you're getting the error: "Warning - The system is configured to not process user-defined mail filters. Filters defined here will not be used." you need to log into the Virtualmin virtual server control panel (possibly with root access -- depending on what permissions were set for your server) and look for the "Email Messages" setting. Click the triangle and a list of four options should appear. Click on "Spam and Virus Scanning." Now on the right side, in the form that appears, look for the "Allow mailbox users to create mail filters?" setting. Click "Yes" and save that.

Of course this assumes you have complete access to your virtual server. If you don't, you'll have to check with your sys admin to have this done for you.

Thu, 05/18/2017 - 10:38 (Reply to #6)
colby13

I know its an old post but just wanted to say thanks, this worked!

Thu, 07/17/2014 - 08:08
rgleason

This worked for me, Thank you.

  1. "Filters defined here will not be used."
  2. Log into the Virtualmin virtual server control panel
  3. "Email Messages" setting
  4. Spam and Virus Scanning
  5. Allow mailbox users to create mail filters? Yes
Wed, 02/17/2016 - 03:42
helonaut

Thank you very much rgleason for posting your solution. Saved me a bunch of time to figure this one out !

Tue, 01/24/2017 - 10:08
rgleason

In Usermin, Filter and Forward - when I try to create a new filter I am unable to select header and there is a red circle with diagonal showing I cannot enter the search into the field.

Also I have noticed that perhaps 1 month ago I started getting more emails from github messages. I believe this is because my current filters may not be working properly either. This is what is in my etc/procmailrc and it looks like it got messed up. Should I fix it to should like to one above?


LOGFILE=/var/log/procmail.log
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
:0wi
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl --exitcode 73 $LOGNAME
EXITCODE=$?
:0
* ?/usr/bin/test "$EXITCODE" = "73"
/dev/null
EXITCODE=0
:0
* ?/usr/bin/test "$VIRTUALMIN" != ""
{
INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN
}
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
DROPPRIVS=yes

This thread has a similar problem and the procmailrc looks almost the same. In fact, It is identical.

https://www.virtualmin.com/comment/618248#comment-618248

Submitted by JamieCameron on Fri, 11/20/2015 - 00:18 Comment #11 Ok, I see the issue here - if a user sets up forwarding in the Usermin UI, by default the FROM_MAILER condition is added to prevent forwarding of bounce messages. This is generally what you want to happen - however, procmail's FROM_MAILER macro matches admin@ and postmaster@ addresses, which seems overly broad to me. The quick work-around is for users to click on "Email Filters" on the left menu, click on the forwarding rule, and un-check the box "Suppress forwarding of bounce messages". The longer-term solution is less clear - Usermin could avoid using FROM_MAILER by default, but this could trigger bounce loops.

The difference is I am just trying to set up FILTERS right now.

USERMIN > MAIL > EMAIL FILTERS > ADD A NEW EMAIL FILTER

Does not work. Cannot select Header and cannot enter in the fields.

Operating system CentOS Linux 6.7\
Usermin Version 1.690 \
Theme version Authentic Theme 18.32 \

Webmin
Operating system CentOS Linux 6.8
Webmin version 1.831
Virtualmin version 5.05
Theme version Authentic Theme 18.32
Time on system Tuesday, January 24, 2017 11:53 AM
Kernel and CPU Linux 2.6.32-642.3.1.el6.x86_64 on x86_64
Processor information Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz, 1 cores

Also https://www.virtualmin.com/node/33848

Could not find this https://www.virtualmin.com/comment/689965#comment-689965 https://www.virtualmin.com/comment/584046#comment-584046 But found the comparable in 2012

Spam and Virus Scanning. Change "Allow mailbox users to create mail filters?" to "Yes", and then click "Save".
If it is already set to "Yes", try changing to "No", saving, returning to that page, setting it to "Yes" again and re-saving.

And I had already done both of these!

Have now tried reboot of servers for Postfix, Dovecot, SpamAssassin, & Clamdv,

Still Locked out of Email Filters. Also when I bring up an existing email filter in my user account the fields are all blank, but the filters themselves look find on the page. Wierd

Tue, 01/24/2017 - 13:10
rgleason

I think this is probably a bug.

Fri, 01/27/2017 - 09:22
rgleason

It turns out that this problem was a problem with the Theme. I

First of all I can not see where the ENTRY BOXES are located, the background is too light!!!

Secondly the Box around the entry areas should be heavier!!!

Thirdly the entry boxes were not really where they should be.

Fourth only the tab button would get me into selecting "Header"

I hope this gets fixed in the default THEME

Topic locked