Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: DanB35 on March 13, 2015, 03:58:34 PM

Title: Using procmail
Post by: DanB35 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?
Title: Re: Using procmail
Post by: janet on March 13, 2015, 09:35:07 PM
DanB35

Did you look at user custom templates ?
There is a seperate tree structure for those.
Title: Re: Using procmail
Post by: DanB35 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.
Title: Re: Using procmail
Post by: brianr 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
Title: Re: Using procmail
Post by: DanB35 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.