LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2007, 04:44 AM   #1
Funkester
LQ Newbie
 
Registered: Dec 2003
Posts: 17

Rep: Reputation: 0
FC6 Sendmail Gateway SmartHost to Exchange


Hi,

Please can someone help me with Sendmail v8.13.8 on Fedora Core 6?

I have built this Fedora box to serve as my antispam & antivirus email gateway for my existing MS Exchange 2003 email server.

All I want Sendmail to do is to route all external email to a smarthost (Smarthost IP is 172.31.3.28) and route all inbound email to the Exchange server (Exchange IP is 172.31.3.34).

I don't want any mail to be stored on the Fedora Sendmail box, all I need is to route mail between the outside world and the inside Exchange server (scanning it for spam & viruses in the process).

This Fedora box does not have a public IP address, as it sits behind an ISA firewall that handles the email to & from the outside world (this is the smarthost with the IP 172.31.3.28)

Please can you give me some advice or point me to a guide that I can use to get this working?

Any help or advice is gratefully received ;-)

Thanks in advance.

Kind Regards,

Greg.
 
Old 01-15-2007, 10:23 PM   #2
osdeals
Member
 
Registered: Jul 2006
Distribution: RHEL, CentOS, PuppyLinux, SuSe, Ubuntu, Debian
Posts: 59

Rep: Reputation: 15
First find the line in /etc/mail.sendmail.mc that looks like this:

Code:
dnl define(`SMART_HOST',`smtp.your.provider')
and change it to:

Code:
define(`SMART_HOST',`smtp.your.provider') dnl
the smtp.your.provider should be the fully qualified domain name of the Exchange server that will handle outbound mail.

Next you'll need to find the 'mailertable' line in /etc/mail.sendmail.mc and check that it looks exactly as it appears here.

Code:
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
Save this file.

Edit the file /etc/mail/mailertable and put in a line like this:

Code:
.my-domain.com      smtp:[IP.AD.DR.ESS]
where the IP Address is that of the Exchange server that will handle mail your your domain (my-domain.com).

Last, do 'make -C /etc/mail' to regenerate the sendmail.cf, and the mailertable.db (and any other sendmail configs that need to be regenerated). You'll also need to restart sendmail since you've created a new cf file.

That's it.. you can start testing using 'sendmail -bv recipient@domain to figure out what sendmail is going to do with the mail.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Gateway for MailScanner and exchange cth3 Linux - Newbie 5 05-10-2016 09:46 PM
Sendmail ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 07:55 AM
Sendmail as SmartHost to route MS exchange 2003 Internal mail cksoo Linux - Enterprise 4 01-15-2007 10:34 AM
Sendmail configuration (conditional smarthost?) link1305 Linux - Software 2 01-08-2007 01:24 PM
Yet another Sendmail thread... SMARTHOST not working mychl Linux - Networking 1 03-15-2004 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration