[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Sendmail And Micro$oft Exchange

Posted on 1999-11-17
6
Medium Priority
?
481 Views
Last Modified: 2010-04-21
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
0
Comment
Question by:tonyb_1
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:dgrimes
ID: 2220099
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
 

Author Comment

by:tonyb_1
ID: 2220172
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
 
LVL 2

Expert Comment

by:dgrimes
ID: 2220368
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
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
LVL 2

Accepted Solution

by:
blowfish earned 400 total points
ID: 2222747
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
 

Author Comment

by:tonyb_1
ID: 2225795
Thanks gouys will try out your idears.

Will let u know
0
 

Author Comment

by:tonyb_1
ID: 2276588
Thanks guts sorry about the dalay in answering :-))

all ok now !
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question