Dec 23, 2025 - 03:57 PMDeutsch | English
Hello unlogged user [ Register | Log in ]

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
max11max
Post subject: Sendmail CF file changes automatically EH?  PostPosted: Aug 01, 2006 - 10:25 PM



Joined: Jun 24, 2006
Posts: 27
Location: Canvey Island
I know it sounds mad but this is whats happening.

While setting up my webserver I changed my sendmail.cf file to reflect my local IP. I did this in the evening.
Code:
O DaemonPortOptions=Family=inet,  Name=MTA-v4, Port=smtp, Addr=10.168.0.10
Then in the morning it's been changed back to
Code:
O DaemonPortOptions=Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1
mail then stops working.

I change it back in the morning and in the evening it's changed back again.

It's doing this twice every day.

I'm stumped ?? Does anyone know how I can fix this.

:EDIT:

OK I did a little more probing about but can't put my finger on it. I made the sendmail.cf file read only after correcting it and did a reboot. Same again, it changed the ip back to 127.0.0.1 and the file has read and write atrib.

What the heck is going on ?

max.

_________________
# cd /pub
# more beer
 
 View user's profile Send private message  
Reply with quote Back to top
max11max
Post subject:   PostPosted: Aug 02, 2006 - 02:48 PM



Joined: Jun 24, 2006
Posts: 27
Location: Canvey Island
OK, I found the answer to the problem, I just don't understand how to implement this in Kanotix.

This is such a steep learning curve.

Code:
Date: June 15, 2000
If you have used linuxconf's module "mailconf" just once, it will rewrite your sendmail.cf on every reboot
if it sees that sendmail.cf is changed from linuxconf. The solution is to remove the mailconf module from linuxconf.
Turn on linuxconf and go to item

   Control files and systems > Configure Linuxconf modules

Scroll down to "Module path -> mailconf" and turn off the button "this module is active", then click
 "Accept" and "quit" to quit linuxconf.
This will disable linuxconf's control of sendmail. Build sendmail.cf again from sendmail.mc (see 5.3.1),
 and restart sendmail.


If someone can help me with this I'd be very grateful.

max.

_________________
# cd /pub
# more beer
 
 View user's profile Send private message  
Reply with quote Back to top
max11max
Post subject:   PostPosted: Aug 03, 2006 - 08:39 AM



Joined: Jun 24, 2006
Posts: 27
Location: Canvey Island
Found the problem and fixed it. If anyone ever has the same problem then this will help.

When sendmail is started via the /etc/init.d/sendmail script it checks the file /etc/mail/sendmail.cf (among others) and compares it with data in file /etc/mail/sendmail.mc - if any part of the sendmail.cf file is not the same then it changes it.

It might even rebuild the sendmail.cf file every boot without checking I'm not entirly sure.

I'm also not 100% sure if I did the correct thing in editing the sendmail.mc but it now works and no ip changing after reboot.

Whats a pain in the a$$

max.

_________________
# cd /pub
# more beer
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.