Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We want to force all our e-mail to go via an SMTP server for virus scanning, spam scanning and some tags that we use internally.

Is this possible? We configured Exchange's smarthost property and that works for all e-mail except those that are recognized as local users on Exchange.

share|improve this question

3 Answers 3

up vote 2 down vote accepted

If it were possible, the market for "Exchange antivirus software" would be a very different one. Microsoft created the "Transport Agent" framework to allow programmatic access to the email flow in an entire Exchange system, to/from the internet, and to/from internal users as well. You will need to leverage that system to do what you want.

It can be done, but your software has to be able to leverage the hooks. It is perfectly possible for such systems to do the AV role (that's how all Exchange AV systems have to work) as well as rewriting emails (adding headers, changing subject-lines, whatnot), and just extracting information from the email to put somewhere else.

share|improve this answer
    
Thanks @sysadmin1138. I was hoping there was another way without incorporating a Transport Agent since we already have an appliance for e-mail protection. Didn't seem likely but didn't hurt to ask. –  Belmin Fernandez Dec 17 '10 at 17:22

I'm not sure this is possible, since this is how Exchange is designed to work.

The problem you have is that you have (for example) acme-widgets.com defined in Exchange as a domain it is authoritative for, therefore it accepts all mail for acme-widgets.com and delivers it locally if the address exists (and bounces it otherwise). There's no point sending an email to another SMTP server for it to be sent straight back.

If you were to send all your mail to an external SMTP provider, you'd create a bit of a paradox which would go something like this.

  1. Receive mail and send to external SMTP server
  2. External SMTP server does its thing and sends the message to your email server
  3. Go to step 1

Infinite routing loop, anyone?

share|improve this answer
    
Yes this is something I worried about. Should of mentioned it in the original question but still wanted to know if there was a way around it. –  Belmin Fernandez Dec 17 '10 at 17:19

You might be able to slap a workstation with two NICs running Untangle as a "transparent bridge" in front of your Exchange Server; that'll scan/filter all traffic destined for your Exchange Server (including malware, spam, etc.) but it would probably be easier just to install proper anti-virus/spam on the mail server itself.

Having said this, if you're seeing alot of internal spam, sounds like you have bigger issues (like a spambot on your network). Clean it up at the source and make sure you drop outbound TCP 25 traffic at the firewall (with an exception for your mail server obviously).

share|improve this answer
    
This is a new Exchange environment that we are configuring. Just exploring if there were options that we were not aware of. We currently have an external mail protection appliance and wanted to know if we could make use of it. The vendor was not aware of a way to accomplish this but I figured SF might. –  Belmin Fernandez Dec 17 '10 at 17:21
    
I can say of the dozen or so Exchange environments I work with, anti-virus/spam on the server, plus a gateway anti-spam service, and sane firewall rules as I suggested, eliminate 99.9% of spam issues, incoming and outgoing. –  gravyface Dec 17 '10 at 17:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.