Koozali.org: home of the SME Server

'Blocking' groupname@mydomain.com

Offline misnerspace

  • *
  • 58
  • +0/-0
'Blocking' groupname@mydomain.com
« on: March 11, 2007, 07:16:22 AM »
I have recently inherited SME (and so far I really love using it) so apologize if my question is dumb or has been answered before. This may be a strange request but I’m having problems with a particular spammer sending emails to groups

I would like to reject certain emails sent to groupname@mydomain.com IF they are sent from an external email address. So if someone sends the following:

To: groupname@mydomain.com
From: a_spammer@someotherdomain.com

the email will be rejected.

But if someone from my domain sends the following

To: groupname@mydomain.com
From: a_name@mydomain.com

the email won’t be rejected

and if someone sends the following

To: a_user@mydomain.com
From: a_name@someotherdomain.com

the email still won’t be rejected

To cut a long story short:  I only want to allow users from mydomain.com to be able to send emails to groupnames@mydomain.com.

I’ve looked around for information but unfortunately can’t find anything. If someone can help me I will promise to update the wiki with the relevant information.

Thanks for your help/advice in advance

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
'Blocking' groupname@mydomain.com
« Reply #1 on: March 11, 2007, 10:05:43 AM »
Quote
I would like to reject certain emails sent to groupname@mydomain.com IF they are sent from an external email address. So if someone sends the following:

To: groupname@mydomain.com
From: a_spammer@someotherdomain.com

the email will be rejected.

I’ve looked around for information but unfortunately can’t find anything.

You didn't look hard enough because we have three posts about blacklisting email (hint for the search button).
"It should just work" if it doesn't report it. Thanks!

Offline misnerspace

  • *
  • 58
  • +0/-0
'Blocking' groupname@mydomain.com
« Reply #2 on: March 11, 2007, 11:29:53 AM »
Hi bpivk, I have indeed checked various posts and unfortunately they do not seem to answer my question. Maybe my explanation wasn't that clear

I want to 'blacklist' all external email that is sent to only one particular groupname@mydomain.com.

The situation is as follows: unfortunately we have a problem where an ex-employee keeps sending emails to groupname@mydomain.com from a multitude of anonymous webmail accounts. The ex-employee can easily set up as many hotmail, yahoo, etc email accounts as they want.

I have been requested by the MD to 'stop this from happening'.

The only strategy I can think of is to block all external emails that are sent to this one unique particular group email (the entire office!) BUT i want employees with legitimate employee@mydomain.com email addresses to still be able to send internal emails to this same internal group. I do not want to block entire domains such as hotmail, gmail, etc as it would be unfair to employees.

I don't think this is something that spamassassin can handle, it may be that my strategy if flawed.

Any advice would be much appreciated

Thanks for your help/advice in advance and I will update the wiki once I find a solution

Offline jonic

  • *
  • 103
  • +1/-0
'Blocking' groupname@mydomain.com
« Reply #3 on: March 11, 2007, 05:12:57 PM »
A simpler solution would be to change the name of the group in question. As you need only emails from internal users, you need to announce the new address only to your users.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
'Blocking' groupname@mydomain.com
« Reply #4 on: March 11, 2007, 06:01:49 PM »
Quote from: "jonic"
A simpler solution would be to change the name of the group in question. As you need only emails from internal users, you need to announce the new address only to your users.


I agree. You should change the name and your problems will be solved. As you yourself said this is only for one domain so just change the domain or prosecute the guy.

Quote
The only strategy I can think of is to block all external emails....
 I do not want to block entire domains such as hotmail, gmail, etc as it would be unfair to employees.


These two just don't go together.

And i found a link that might help you...
http://forums.contribs.org/index.php?topic=29297.0
"It should just work" if it doesn't report it. Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
'Blocking' groupname@mydomain.com
« Reply #5 on: March 11, 2007, 06:32:48 PM »
Quote from: "bpivk"

And i found a link that might help you...
http://forums.contribs.org/index.php?topic=29297.0


Better is a search for "visible internal", which will find, amongst other things:

"How to add local groups that cannot receive external emails"

Offline misnerspace

  • *
  • 58
  • +0/-0
'Blocking' groupname@mydomain.com
« Reply #6 on: March 12, 2007, 01:28:07 AM »
Hi CharlieBrady, jonic, and bpivk, thanks for your help. I did actually think about jonic's solution but the only problem is that employees talk and an existing employee may pass on the group name, I doubt it though but it is possible. I will follow CharlieBrady's advice, thanks for your help, it is much appreciated!

CharlieBrady, just to double check so I don't make a colossal mistake and before I update the wiki.... which of the following is correct:

db accounts setprop myGroupName Visible internal
signal-event email-update

or

db accounts setprop myGroupName@myDomainName.com Visible internal
signal-event email-update

It was nice to come across the SME developers manual to get an idea of its architecture!

Offline misnerspace

  • *
  • 58
  • +0/-0
'Blocking' groupname@mydomain.com
« Reply #7 on: March 13, 2007, 07:08:16 AM »
ok, after reading the developers manual and doing the following

db accounts show

its obvious that it is the following:

db accounts setprop myGroupName Visible internal
signal-event email-update

and it works!

Out of interest, does anyone know how I could get a list of all the settable properties for the accounts db. I guess I really want to know how this particular db is structured