Koozali.org: home of the SME Server

exclude from everyone pseudonym

gmoney

exclude from everyone pseudonym
« on: December 12, 2006, 07:01:38 PM »
We use the "everyone" alias often because our company has lots of people coming and going.  It is an easy way for us to broacast messages out without having to keep an address book up to date.

However, we have about 5 addresses that we don't want to get mail that is sent out to "everyone@domain.com".  

Is there a way to modify the "everyone" pseudonym/alias so that it excludes a pre-defined list of addresses?

mbachmann

exclude from everyone pseudonym
« Reply #1 on: December 12, 2006, 10:17:28 PM »
Create a group "all", put all users in except the five to be excluded. On creating new users you get the option to tick a checkbox to define group-memberships so there is just one extra checkbox to fill. Tell the users, to use all@domain.com instead of everone@domain.com. Does that help?

gmoney

exclude from everyone pseudonym
« Reply #2 on: December 13, 2006, 05:57:02 PM »
yes, that is a good idea and would work, however getting all our users to start typing "all@domain.com" instead of "everyone@domain.com", and asking admins remember to check an additional box would be a hurdle.

Is there no way to modify the mechanism that expands "everyone@domain.com" into individual addresses?

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
exclude from everyone pseudonym
« Reply #3 on: December 14, 2006, 02:25:09 AM »
>Is there no way to modify the mechanism that expands "everyone@domain.com" into individual addresses?

yes, you could modify the perl code that creates the alias
preferably in the base code or your change will be overwirtten on a yum update

or
add procmail or maildrop
create a rule for those 5 users that deletes the mail addressed to everyone@

gmoney

exclude from everyone pseudonym
« Reply #4 on: December 14, 2006, 03:35:01 AM »
I will investigate maildrop and porcmail... could you tell me what file the perl code is in?  I've been poking aroung but can't find it.

Offline pfloor

  • *****
  • 889
  • +1/-0
exclude from everyone pseudonym
« Reply #5 on: December 14, 2006, 04:40:31 AM »
You could also try one of the following:

You could set up a "rule" in your mail cient to send everything to everyone@yourdomain.com to a junk folder.

OR you could help test this bug http://bugs.contribs.org/show_bug.cgi?id=1842 as it does exactly what you want but does not quite work yet.  Gordon would like to include it into the base but it needs a bit more work.  Can you help with it since you need it?
In life, you must either "Push, Pull or Get out of the way!"

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
exclude from everyone pseudonym
« Reply #6 on: December 14, 2006, 05:11:19 AM »
Yes, this is the correct way

and it probably does work
gordon has explained chris and I we're using the wrong event to test
you should be able to verify it works

Offline pfloor

  • *****
  • 889
  • +1/-0
exclude from everyone pseudonym
« Reply #7 on: December 14, 2006, 05:19:54 AM »
So what is the correct signal-event?
In life, you must either "Push, Pull or Get out of the way!"

Offline pfloor

  • *****
  • 889
  • +1/-0
exclude from everyone pseudonym
« Reply #8 on: December 14, 2006, 05:46:58 AM »
This works for me and you can do multiple users:

# db accounts setprop admin EveryoneEmail no
# db accounts setprop paul EveryoneEmail no
# signal-event user-modify
# /etc/init.d/qmail restart

gmoney, why don't you try this and report your findings (good or bad) to the bug http://bugs.contribs.org/show_bug.cgi?id=1842 .  We would like to close that bug if this works correctly.
In life, you must either "Push, Pull or Get out of the way!"