Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: gmoney 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?
-
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?
-
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?
-
>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@
-
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.
-
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?
-
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
-
So what is the correct signal-event?
-
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.