Koozali.org: home of the SME Server

Using procmail

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Using procmail
« on: March 13, 2015, 03:58:34 PM »
My server's accumulated a lot of cruft over the years, and bit by bit, I'm trying to clean things up and do them the "SME way".  Today's project is procmail.  A search of the wiki returns a number of items, and I'm not sure which would be the best fit for my needs.

One user on my server (me) uses procmail to sort email from various mailing lists into appropriate folders.  I have a .procmailrc file (which has the SME template warning at the top, but I can't find any corresponding templates for), which includes a lists.rc file, which has the actual filtering rules for the mailing lists.  I've also edited the .qmail file to route mail through procmail.  Of course, every time I need to do a post-upgrade, an email-update, etc., I need to change that .qmail file.  Not an optimal situation, to say the least.

My objective is pretty straightforward: I want to direct messages from various mailing lists into their corresponding folders.  I guess it'd be nice if I had a GUI way to update the sorting rules, but I can edit the lists.rc file as needed, so that isn't too important.  I also want the configuration to survive server updates without needing manual intervention.  I'd guess that any contrib that would enable procmail for one user could allow it to be enabled for all users, but I wouldn't want it enabled for other users on the system.

What's the best way to proceed?
......

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Using procmail
« Reply #1 on: March 13, 2015, 09:35:07 PM »
DanB35

Did you look at user custom templates ?
There is a seperate tree structure for those.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Using procmail
« Reply #2 on: March 14, 2015, 12:48:10 PM »
Thanks for the suggestion.  I considered custom user templates, but thought they'd make the same change to all users' configuration.
......

Offline brianr

  • *
  • 988
  • +2/-0
Re: Using procmail
« Reply #3 on: March 14, 2015, 02:03:54 PM »
The userpanel and mailsorting contribs are the ones you want.

http://wiki.contribs.org/Mailsorting
http://wiki.contribs.org/UserManager

I've been using them for many years.

Cheers  Brian
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Using procmail
« Reply #4 on: March 17, 2015, 07:13:37 PM »
Thanks--it took a few days for me to get them installed and running, but the userpanel and mailsorting contribs seem to be doing what I need.
......