LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2006, 12:12 AM   #1
blanny
Member
 
Registered: Dec 2002
Location: CA,USA
Distribution: RHCE in training :)
Posts: 57

Rep: Reputation: 15
I don't want to use my sendmail smart host for machines in my local domain


Hello, I have a bind server and sendmail server setup to where I can recieve email on rhce.blanny.tv but anything to shady12.blanny.tv gets directed by an MX record in my dns zone to rhce.blanny.tv. This is what I want to have happen, but the fun doesn't stop there. Unfortunately, because I use comast cable, I have to use their smtp server as a smart host in order to send anything to the internet. As a result of this smarthost, sendmail see's shady12.blanny.tv as not being the local machine so it sends it back off through the smarthost to comcast, who sends it back in a never ending cycle.

Can someone tell me what the best solution is? Is there a way I can pass an exception to define(`SMART_HOST',`smtp.comcast.net')
in my sendmail.mc?
 
Old 08-15-2006, 11:35 AM   #2
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
You can use the mailertable feature to specifically define mail routing for particular domains. In the sendmail.mc file, add this line:

Code:
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
Then in mailertable file in /etc/mail, add the routing for those domains that should not use the smart host:

Code:
mydomain.com        esmtp:mailhub.mydomain.com
Then create the mailertable database file:

Code:
makemap hash mailertable < mailertable
Cheers.
 
Old 10-24-2006, 11:29 AM   #3
reygal12
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
am just planning to take RHCE EXAM soon
my question is there a choice of mail server e.g sendamail/Postfix?
I prefer postfix

regards
reygal
 
Old 10-24-2006, 07:25 PM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Try adding: shady12.blanny.tv
to /etc/mail/local-host-names

By doing so, you are configuring sendmail to treat any host/domain name specified in this file as local. i.e. handoff to local mailer. All other domains will be sent to the smart host.

Note: The local-hosts-names file does not get converted to a database (makemap), so you will need to bounce sendmail for any change to this file to take effect.
 
Old 10-26-2006, 11:48 PM   #5
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
Quote:
Am just planning to take RHCE EXAM soon. My question is there a choice of mail server e.g sendamail/Postfix?
Then discard your preference and learn Sendmail since this is the default MTA for Red Hat and the one you have to deal with on the test.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to configure sendmail as smart host cksoo Linux - Enterprise 2 01-16-2006 02:43 PM
Sendmail Smart Host / Mail Hub niranjan_mr Linux - Software 1 11-01-2005 08:07 PM
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 05:32 PM
sendmail and isp smart host adafos Linux - Networking 3 09-22-2004 09:41 AM
configuring sendmail with smart host zapperabhi Linux - Software 2 01-07-2004 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration