+ Post New Thread
Results 1 to 3 of 3
Windows Thread, Exchange 2K7 - restrict send to a few domains? in Technical; There's a bunch of younger users with mailboxes in their own storage group/store. I want to be able to stop ...
  1. #1

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115

    Exchange 2K7 - restrict send to a few domains?

    There's a bunch of younger users with mailboxes in their own storage group/store.

    I want to be able to stop them sending external mails anywhere besides some permitted domains, in fact ideally that would include permitted wildcards e.g. *.sch.uk. And vice versa for receiving.

    I'm struggling to find a way that doesn't involve writing a little "transport agent" and I'm not convinced that will be ideal e.g. can you figure out that an outbound mail is from someone with a mailbox in a particular store, and vice versa for inbound?

    Anyone got any clues on how to do this with minimum effort?

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Wouldn't Sender Filtering do what you want?

    Sender Filtering

  3. #3

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115
    Thanks for suggesting, but no. I 've done a *lot* of googling since and eventually turned up two comments from different MS folk saying that you need to make a custom agent just for the outbound half of what I want.

    So I've made a custom agent and it's working so far(!) on the lab bench, but is still being tested. Should anyone else be faced with this problem:

    a) If you've got a single Exchange 2K7 doing everything you must make a custom "routing agent". Most of the few examples you can find are for an "SMTP receive agent" but for a single Exchange 2K7, they won't catch outbound messages.

    b) I haven't found a quick way to decide that a message is from a user with a mailbox in a given store (or addressed to a user with...). Given that they're interfering with every message I reckon agents need to be quick, but fortunately there is a strict naming convention for accounts and mail addresses, so I'm able to use simple checks based on mail addresses instead.

    c) Took some thought, but it wasn't too bad to write @ 200 lines of code (includes getting all the config from the registry). It's been a bit tedious to test it though.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 14th October 2008, 12:39 PM
  2. Exchange 2003 - send mail to everyone
    By Ryan in forum Windows
    Replies: 3
    Last Post: 22nd May 2008, 01:57 PM
  3. Replies: 5
    Last Post: 28th February 2008, 04:57 PM
  4. Replies: 1
    Last Post: 23rd February 2007, 12:26 PM
  5. Cannot send to specific domains..
    By timbo343 in forum Windows
    Replies: 7
    Last Post: 19th September 2006, 10:17 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •