Security Basics mailing list archives

Re: Protecting an Exchange server?


From: Ed Budd <ebudd () grokking org>
Date: Thu, 20 May 2004 14:40:37 -0400

On Thu, 20 May 2004 06:57:38 -0700
"Randy Johnson" <randyj () holydiver com> wrote:

I'm greatly interested in this thread, and have a couple questions for
the group.

I am currently needing to try to do this with Sendmail (in the long
term I plan to migrate to Postfix, but for now it's gotta be
Sendmail).

In the past, I've done this with the 'SmartHost' directive (as someone
had alluded to in the previous thread) but now it appears that isn't
the'correct' way, and I should use the 'Mailers' table ?


I've done this with FreeBSD 5.1 running Sendmail 8.12.9 and Exchange
2000:

1. Add the relevant domain(s) to the local-host-names file so sendmail
recognizes the mail recipients as local and not an attempt at
third-party relay;

2. Add entries for each domain name you need to mailertable
like so (the square brackets are necessary in the latter case)

        @domainname     esmtp:exchange.hostname
                                OR
        @domainname     esmtp:[ipaddress.of.exchange.server]

Do the standard make maps, restart sendmail routine relevant to your
platform and version.

Then make the sendmail relay the 'smarthost' in the smtp virtual host
settings on exchange and add the exchange server to the
the access file so sendmail accepts relaying for it. If you use
SMTP AUTH on the sendmail relay you'll need to set this up through the
use of an smtp connector. I've used a special user account for this
purpose.

Then do the standard make maps, restart sendmail routine relevant to
your platform and version.

Hope that helps,

EB

---------------------------------------------------------------------------
Ethical Hacking at the InfoSec Institute. Mention this ad and get $545 off 
any course! All of our class sizes are guaranteed to be 10 students or less 
to facilitate one-on-one interaction with one of our expert instructors. 
Attend a course taught by an expert instructor with years of in-the-field 
pen testing experience in our state of the art hacking lab. Master the skills 
of an Ethical Hacker to better assess the security of your organization. 
Visit us at: 
http://www.infosecinstitute.com/courses/ethical_hacking_training.html
----------------------------------------------------------------------------


Current thread: