How does it work?
I have tried to ask in usermin forum, but nobody replies.
I have Virtualmin 3.46 pro.
I am trying to make some mail filters.
role 1:
[ol][li]Condition for filter:[/li]
[li]Based on header : From must match somebody@hotmail.com[/li]
[li]Action if condition is matched:[/li]
[li]Save to folder: Other file… $HOME/Maildir/.hotmail/[/li][/ol]
But the filter does not do anything.
What have I done wrong?
It is a Virtalmin pro 3.46 and Usermin 1.290
How do I make a role filter "@domain.tld" to at folder? Or should I add every mailadress the folder?
I guess you lost me here. Are you trying to setup the filter in ProcMail?
Typically you log in to Usermin, create a destination folder then create a filter (within usermin) to redirect the mail to that folder (actually I see you can have the new filter create the folder).
You can make the domain an action condition but then it may accept all the spam@hotmail bypassing the spam filter.
Sorry. But it why I have posted this post.
I can not get it to work, and I am tailing the log to look after error, but nothing where.
I don’t think procmail are using the config typed in usermin.
I use the usermin fron-end and see that the maildir file is created but procmail seems to ignore the settings.
The .procmailrc file exists in ./homes/[username]/.procmailr
After using a yahoo and hotmail test account I realized the mails that did forward to folders were also sent from local accounts. Emails coming from the real world get delivered to the inbox ignoring the rule set.
I use sendmail mbox so the results are cross platform. I couldn’t find any switch or config that needs to be set to enable the forwarding so best to send this off as a possible bug.
From testing, I’ve determined that procmail processes the string you specify as though it were the beginning of a string. In other words, if you say subject matches foo, this should match “foo”, “foobar”, “foo and bar”, etc., bot not “this is foo bar”. Procmail interprets regular expressions. so .*foo would match any string with “foo” in it (since it seems that this gets processed as if it were .foo. ).
So try making your filter match string .*@hotmail.com (or .*joe@hotmail.com if, for example,you want to just catch mail to joe). See if this works for you. This notation might be necessary if procmail is looking at the whole header and thinking that “johnshith@hotmail.com” doesn’t match something like, say, ’ “John Smith” <johnsmith@hotmail.com> ’
Virtualmin basically rocks, but the interfaces available to manage mail filters are awful. Nothing you could expect a normal user to successfully work with. I’d love to see something easy to use like Horde’s Ingo module.