Koozali.org: home of the SME Server

Help with process logic - please

Offline sgt-spam

  • ****
  • 84
  • +0/-0
Help with process logic - please
« on: August 20, 2004, 08:51:22 PM »
My goal here is to forward certain user's email on the SME.

I'm working on a test server and just can't seem to get it right.  I've been using this thread as reference, and I think it's got me on the right track, but I'm still having trouble.

I have Jesper's antivirus and spamassassin contribs installed.  They're working great now.

On the main box, I've got user accounts for my users and their cell phones.  Cell phone accounts are locked and simply forward the mail to the cell phone's text (SMS) address.  Typically, I create a group named dst-username and make the cell phone account a memeber of that group.  If the user has a home email address they want forwarded to, another account is created, configured to foward only, and added to this distribution group.  The user's main account is then configured to 'deliver and forward' and the forwarding address is entered as 'dst-username'.  This works great.  Users get a text message with the first 100 or so characters of the email.

I'm trying to duplicate that on the test box with spamassassin (procmail), but the groups and forwarding are causing delivery loops.

It would be easy enough to just add the SMS address of the cell phone in the procmail user panel, but then I don't have the freedom of adding and removing accounts very simply from the mail SME server manager.  I'm also having trouble with group memberships when dealing with procmail.  For some reason the admin account keeps making it into my dst-username groups - I don't need (want) a copy of all my user's email...  Even though it could prove entertaining.

I guess my main question is am I going about this the right way?  I don't mind fiddling with procmail to get it right, I just need an easy to manage way of adding additional addresses to user's distribution lists.

Thanks for reading.

Offline sgt-spam

  • ****
  • 84
  • +0/-0
Help with process logic - please
« Reply #1 on: August 21, 2004, 11:36:35 PM »
I've gotten this worked out...

I will continue to use the dst-username approach to forward email to other addresses / devices my users have.  What I didn't realize was that as I was modifying user configuration, my groups were being updated (admin account being included in group).  I just need to remember to make my user changes and then re-check all group memberships.