• 1. London, UK
  • 2. New York, NY
  • 3. Sydney, Australia
  • 4. Melbourne, Australia
  • 5. San Francisco, CA
  • 6. Chicago, IL
  • 7. Toronto, Canada
  • 8. Moscow, Russia
  • 9. Houston, TX
  • 10. Amsterdam, Netherlands

Sunday, September 24, 2006

 

HOW TO: Install anti-spam agents on Hub Transport server

Posted by Bharat Suneja at 9:11 AM
If you're using Exchange Server 2007 in a topology with an Edge Transport server, the anti-spam agents - Connection Filtering, Content Filter, Sender ID, Sender Filter, Recipient Filter, and Protocol Analysis - are installed on the Edge server. You do not need these agents installed on the Hub server(s).

In environments without an Edge server role, these need to be installed manually on the Hub Transport server(s).

To install anti-spam agents on a Hub Transport server, start Exchange Management Shell (EMS), navigate to the "\Exchange Server\Scripts" folder (by default C:\Program Files\Microsoft\Exchange Server\Scripts), and run:

.\install-antispamagents.ps1

Once installed successfully, the command will show each agent installed, whether it is enabled or not, and its priority [screenshot].

Anti-Spam Agents on Hub Transport serverAfter the anti-spam agents are installed, you can see the Anti-spam tab in Organization Configuration | Hub Transport node in Exchange Management Console. (If your console was open during installation, you will need to restart it).

In such deployments, you can either route inbound mail through your service provider/ISP, or configure Hub Transport servers to receive inbound email directly. Read previous post "Exchange Server 2007: Internet email without Edge servers".

Related posts:
- Exchange Server 2007: Internet email without Edge servers
- Exchange Server 2007: Managing And Filtering Anti-Spam Agent Logs
- Exchange 2007 Content FIlter: The Whitelist Is Here!
- Exchange 2007 Content Filter: How to move messages to Junk Mail folder
- Exchange Server 2007: How are RBLs performing?

Labels: , , ,

5 Comments:

January 27, 2007 7:07 PM
Anonymous Anonymous said...

I did this.. it added the tabs etc, but when i add words to the Content Filtering they do not seem to get blocked.
I added the get spammed word "viagra" and using my hotmail i sent a message with the word viagra in it.
This email was still sent to me and not put in the spam mailbox which is the Action.
I have NO exceptions.

So not sure why this doesnt work in the Anti-Spam, all the other parts of the anti spam seem to function ok.

 
March 16, 2007 1:47 PM
Anonymous Anonymous said...

This does not work any longer.

 
March 16, 2007 5:22 PM
Blogger Bharat said...

What doesn't work - installing anti-spam agents on the hub?

Bharat

 
March 31, 2008 5:23 AM
Blogger lolo said...

Hi,

I went o directory :
c:\Program Files\Microsoft\Exchange Server\Scripts

I launch the script :
.\install-AntispamAgents.ps1

Then it open "notepad" with :
The script in !

Not executed it !

PS : excuse for my English, I'm French ;)

Bye

 
June 30, 2008 3:50 AM
Blogger Priyank Bhat said...

I am using exchange 2007, and antispam installed on it. Antispam worked for weeks time and then all of sudden transport server is not working now. Here is the eventlog. If anyone can help to find solution to this problem it will be quite helpful.

Microsoft Exchange couldn't start transport agents. The Microsoft Exchange Transport service will be stopped. Exception details: Failed to create type 'Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory' from assembly 'D:\Exchange\TransportRoles\agents\Hygiene\Microsoft.Exchange.Transport.Agent.Hygiene.dll' due to error 'Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))'. : Microsoft.Exchange.Data.ExchangeConfigurationException: Failed to create type 'Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory' from assembly 'D:\Exchange\TransportRoles\agents\Hygiene\Microsoft.Exchange.Transport.Agent.Hygiene.dll' due to error 'Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))'. ---> Microsoft.Exchange.Data.ExchangeConfigurationException: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) ---> System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
at Microsoft.Exchange.Data.Transport.Interop.UnsafeNativeMethods.CoCreateInstance(Guid rclsid, Object pUnkOuter, UInt32 dwClsContext, Guid riid)
at Microsoft.Exchange.Data.Transport.Interop.ComProxy.CreateComObject(Guid guidClass)
at Microsoft.Exchange.Data.Transport.Interop.ComProxy..ctor(Guid guidClass)
at Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory.InitializeFilter()
--- End of inner exception stack trace ---
at Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory.InitializeFilter()
at Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory.Configure(Boolean onStartup)
at Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory..ctor()
--- End of inner exception stack trace ---
at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.FactoryTable.CreateAgentFactory(AgentInfo agentInfo)
at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.FactoryTable..ctor(IEnumerable agents)
at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.RuntimeSettings..ctor(MExConfiguration config, String agentGroup)
at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExRuntime.Initialize(String configFile, String agentGroup)
at Microsoft.Exchange.Protocols.Smtp.MExEvents.Initialize(String configFilePath)
at Microsoft.Exchange.Transport.Components.SmtpMExRuntimeLoader.Load()

For more information, see Help and Support Center at

 

Post a Comment

Links to this post:

Create a Link

<< Home