[CentOS] Force sendmail outbound routing for specific domain name

Hugh E Cruickshank hugh at forsoft.com
Thu Apr 10 04:21:28 UTC 2008


From: Les Mikesell Sent: April 9, 2008 21:10
> 
> Hugh E Cruickshank wrote:
> > From: Clint Dilks Sent: April 9, 2008 20:32
> >> Hi, It has been some time since I have had to do anything with
> >> Sendmail 
> >> like this, but I believe mailertable is what you need. See 
> >> http://www.sendmail.org/m4/mailertables.html
> > 
> > Give the man a cigar! That looks like precisely what I need.
> > 
> 
> Note that you don't need to do the makemap stuff - that's already 
> include in the Centos setup.  Just put the text suggested in the 
> mailertable file and restart sendmail.  And if you use a literal IP 
> address, enclose it in []'s like it says for hostnames where you
> want to 
> avoid the MX record lookup.
> 

All that was needed was to add the entry to /etc/mail/mailertable and
run "service sendmail restart". It rebuilds the database for you. I
did not worry about the IP Address or the MX but it seems to have 
worked anyway.

Regards, Hugh

-- 
Hugh E Cruickshank, Forward Software, www.forward-software.com 



More information about the CentOS mailing list