LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sendmail reconfigure (https://www.linuxquestions.org/questions/linux-newbie-8/sendmail-reconfigure-880031/)

K_L 05-11-2011 05:12 AM

Sendmail reconfigure
 
Hello,

I was given task to change configuration for sendmail. I need to change the IP for smart host relay.

I googled a few sites and searched this forum to check how that is done. What I cathered from results is that I need to make changes to sendmail.mc and then recreate the config file.

So I found the smarthost that had our old IP and changed it to the new one
define(`SMART_HOST', `********')dnl

then issued command
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
I also checked that sendmail.cf changed DS********

Then I restarted sendmail service.

But checking the maillog I noticed that the old smart host is still in use. I have no idea what I'm doing wrong. Please help the n00b and google handicap :D

bathory 05-11-2011 05:48 AM

Hi,

What is the output of:
Code:

sendmail -bv foo@bar.com
Maybe your'e using mailertable to overwrite some domains

K_L 05-12-2011 01:36 PM

Hello and thanks for answering.

Apparently the solution was borrowed from Windows world. I rebooted the machine and problem was solved. I don't understand why restartting service didn't help. I quess that happens when you go poke around system you didn't install your self :D


All times are GMT -5. The time now is 04:39 PM.