Sendmail And Micro$oft Exchange

HI people. I am trying to set up sendmail to retrieve email and forward it to our exchnage box.

The linux box is redhat 6.0 running sendmail ver 8.9.3. The Micro$oft box it running NT 4sp5 and exchange sp2.

How do i configure sendmail to forward all incomming email to the exchange server.

I want to do this for two reasons. First I wan to take the modem of the NT box and secondly we need to keep exchange even though it cannot retrieve from pop mailboxes.

I have managed to set up
tonyb_1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dgrimesCommented:
Are you using DNS? If you are you just need to create a MX record for the domain that point to the exchange server.

If not, then add a smart relay host to your sendmail.cf file.

Ex:

DSexchange.server.name

Where "exchange.server.name" is the name of your exchange server.

Put it in the local info section.


0
tonyb_1Author Commented:
is it possible to have more than one smart host ??

We are not running DNS at all so sendmail is configured with the isp mail servers as its smart host.

I can send from exchange through sendmail and out to the world but when emails come back i cannot pass them back to the exchange server. they just bounce back user unkown


thanks
0
dgrimesCommented:
Can you telnet to the exchange server on port 25? Make sure that exchange is listening for SMTP traffic on port 25.

If you get a response, try sending yourself a message.

type: helo <your name>
type: mail from: <your email address>
type: rcpt to: <your email address>
type: data
type: any old message
type: .

Each line is to be followed with a carriage return. SMTP is very picky about what you type. Even a backspace will cause SMTP to misinterprate the command. Perform this operation from the Linux server. I am assuming that your Linux box is in your DMZ and that mail needs to pass through the firewall to the exchange server. This procedure will help eliminate a firewall problem with inbound SMTP traffic.

Also, have you checked that mail is arriving to your Linux sever from the internet. Is the Linux server dialing an ISP for mail or are you directly connected to the internet?

If you can send mail in this fassion, then sendmail will need to have a rule set added to include a smart relay to your exchange server. Or more preferable is to setup DNS and add an MX record for your domain. If you can't send email in this fassion, then you need to fix this problem first.
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

blowfishCommented:
Use "smart host" to forward all OUTBOUND mail to your ISP.

Use mailertable to forward all INBOUND mail to your Exchange server.

To use mailertable, support for it must be configured in your sendmail.cf, and if I remember correctly, on Linux systems it is, by default.  You can find information about how to use mailertables at http://www.sendmail.org/m4/mailertables.html.  

Basically, the mailertable consists of a file with two colums; in the first column put your domain name, in the second put the name of your exchange server.  You mailertable should look something like this:

mydomain.com          smtp:[exchange.mydomain.com]

in this case, all mail addressed to @mydomain.com will be relayed via the SMTP mailer to exchange.mydomain.com.  The square brackets indicate that the mail is to be relayed "directly", that is no MX record lookup will be done.  

If you have mail addressed to subdomains, then include an entry for each subdomain, like so:

east.mydomain.com      smtp:[exchange.mydomain.com]
west.mydomain.com      smtp:[exchange.mydomain.com]

Store your mailertable in /etc/mailertable.  And compile it using makemap, like so:

  #  cd /etc
  #  cat mailertable | makemap hash mailertable

That's it, you don't even need to stop and re-start sendmail when you compile a new database.  

Hope this is it...

--frankf
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tonyb_1Author Commented:
Thanks gouys will try out your idears.

Will let u know
0
tonyb_1Author Commented:
Thanks guts sorry about the dalay in answering :-))

all ok now !
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.