LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-04-2008, 06:59 AM   #1
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
reconfiguring forwarding with sendmail Centos4.6


This machine recently had its IP changed from 10.x.x.x to 172.x.x.x.x due to an office move. As i understand it, it used to just forward mails to some MTA outside the network, but thats not possible now, it needs to forward to another MTA on the 172 network.

i checked sendmail.mc however the smart relay host parameter wasnt set at all. So i set the ip and restarted sendmail, however it is still using the old config, but i cant seem to find the old config to change it. the sendmail.mc file seems to mention a bestpoke file somewhere but again, i cant find that file.

Any suggestions most welcome, im not really that familiar with sendmail, having always used postfix, and even though this is the only sendmail box on the network, im willing to learn more about it.

Thanks.
 
Old 12-05-2008, 02:06 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
If you changed sendmail.mc, you should rebuild the actual sendmail configuration file that is /etc/mail/sendmail.cf. Before doing so, I suggest to see if it works if you edit directly sendmail.cf (making a backup first). Search for the line that start with DS and add the fqdn of your smarthost like this:
Code:
DShost.domain.com
If you want to use the ip address then you should use brackets to include it:
Code:
DS[xx.xx.xx.xx]
 
Old 12-08-2008, 05:28 AM   #3
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Original Poster
Rep: Reputation: 18
Apologies.. yes we did set it in sendmail.cf as well, but it is still trying to use the old relay. Oddly enough i cant find any mention of this relay in any of the conf files.

:/
 
Old 12-08-2008, 05:56 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
If you have setup DS using a fqdn chances are that the name of the smarthost is taken from /etc/hosts or something like that, or if you use a dns, that this dns still has the old ip address of the smarthost. Try:
Code:
host smarthost.domain.com     or
nslookup smarthost.domain.com
and see what they give.

Last edited by bathory; 12-08-2008 at 07:52 AM.
 
  


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
Mail forwarding using Sendmail yunus.raza Linux - Software 4 04-19-2008 01:44 AM
Forwarding Sendmail to my Exchange Server hotfoot Linux - Newbie 1 11-10-2007 08:07 AM
Forwarding on sent mails in sendmail qaiser.ijaz Red Hat 0 09-14-2007 11:07 PM
how to do email forwarding with sendmail/POP3?? htm Linux - Software 12 08-26-2004 08:04 PM
Sendmail second server/mail forwarding? WorldBuilder Linux - Networking 4 03-11-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:21 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