transport >> Domain restriction problem.

by David Burkhart » Fri, 09 Apr 2004 02:57:31 GMT

We are constantly receiving inbound e-mail that says it's
from our domain, but it's actually a returned message or
a message sent from somewhere else masking our domain
name. We don't allow relay but we're wondering if it's
possible to block your own domain from coming in on the
front-end server, while allowing mail to flow out. Any
help would be much appreciated.

We are running Exchange 2000 with a front-end server.

thank you!




transport >> Domain restriction problem.

by Matt Kuzior [MSFT] » Sat, 10 Apr 2004 06:39:02 GMT

There is not setting that will do this for you in Exchange 2000 or Exchange
2003

If you would like to create that functionality you can do so by authoring a
custom Transport Sink and registering it on your SMTP bridgeheads.

One way to do this is to create a VB dll much like the Disclaimer Sink
described in:
http://support.microsoft.com/default.aspx?scid=kb ;en-us;317327

you will need to customize the behavior to check for the problem senders and
then discard it with the following code
Set Flds = Msg.EnvelopeFields
Flds(" http://schemas.microsoft.com/cdo/smtpenvelope/messagestatus ") =
cdoStatusAbortDelivery
Flds.Update
EventStatus = cdoSkipRemainingSinks

Keep in mind that you need to carefully test this sink before deploying
because you do not want to risk losing legitimate mail. If you prefer a C++
solution you can find information at http://msdn.microsoft.com look for
Platform SDK: "CDO for Windows 2000" and "Microsoft Exchange SDK"

--
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

This posting is provided "AS IS" with no warranties, and confers no rights.








Similar Threads

1. smtp restriction with except one domain

Hi..
I have this group in AD who must have email restrictions.

This group can receive and send emails from internal but must be blocked 
from sending emails to outside out of the office. But there is an exception 
that for external, they can receive and send emails from ONE domain only. 
e.g. *@property.com
Other emails to any external domian will be rejected but for *@property.com 
and Internal ONLY. 

How can I do that?

Many thanks

Pwint

2. lift sender restrictions for internal domain - Manage MS Exchange Server

3. Entering multiple domains in delivery restrictions

Hi Andy,

I do not know of any other way to do this but one at a time. With that many 
domains to add this is going to cause a performance hit on the Server. When 
adding domains in this tab we do a reverse lookup on the IP's that are 
connecting to the Server to match domain names. In your situation it would 
be better to block these domains at a Firewall instead of at the Exchange 
Server.

Hope this helps,
Patrick Genova
 XXXX@XXXXX.COM 
Please do not send mail directly to this alias. This alias is for Newsgroup 
purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.

"Andy" < XXXX@XXXXX.COM > wrote in message 
news: XXXX@XXXXX.COM ...
> Hi,
>
> I understand how to add one or two domains in the delivery restrictions 
> tab but is there a way of entering more in one go? I have a list of 2000 
> domains I want to block from sending emails to our domain, I can't believe 
> the only way I can add these domains to the list is clicking on 'Add' and 
> typing them in!?
>
> I am using Exchange 2000 Server on Windows 2000 Server.
>
> Any help would be appreciated.
>
> Andy 


4. default GAL restrictions in a multi-domain environment - Manage MS Exchange Server

5. Delivery restrictions - allow for another domain

can i allow a domain other than my own to send mail through my exchange2003?

In my delivery restrictions i only allow for internal users to send mail.

Can I "accept messages" from another domain?

6. restriction problems - Manage MS Exchange Server

7. Outlook NDR 5.1.0 - Categorizer problem with mail restriction

8. adsi - delivery restrictions problem - Manage MS Exchange Server