Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 13th, 2004, 02:12 AM
lunatic lunatic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 150 lunatic User rank is Private First Class (20 - 50 Reputation Level)lunatic User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 h 50 m 39 sec
Reputation Power: 6
Find out what .mc file Sendmail is using?

Hello,

I wanted to edit a couple of sendmail's configuration. Except, I don't know what .cf file sendmail is currently using. Nor do I know if it matters or not when running the marco.

In my /etc/mail/ I have the following files:

freebsd.cf
freebsd.mc
freebsd.submit.cf
freebsd.submit.mc
mailer.conf
mailertable.sample
sendmail.cf
sendmail.cf.bak
submit.cf

No how do I know if "freebsd.cf" is in use? or freebsd.submit.cf, or submit.cf? I do know that sendmail.cf is in use. lol... any commands or a way to find out?

Thanks.
(sorry for the english, grammer, confusion, and probably not making sence. It's 3AM and I'm beat)

Reply With Quote
  #2  
Old March 22nd, 2004, 03:54 PM
Quicksilv3r Quicksilv3r is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 9 Quicksilv3r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The path and cf file is encoded in your version of sendmail when it was first compiled. If you are asking the question, I suppose you did not compile sendmail yourself and installed a package. In this case, there is a great probability that it is sendmail.cf residing in /etc/mail/ that is your configuration file.

Check out the init script that launches sendmail. Maybe here you will see which file is used as an optional config file. By default, it is sendmail.cf but you can override the default by launching sendmail with the “–C” option:

ex: sendmail –C /etc/mail/freebsd.cf

FYI the .mc files are macro files. These are the files you should use if you want to modify settings. Then once you’re done, you must generate a new cf using m4:

ex: m4 new.mc > sendmail.cf

It might be wise to backup your existing sendmail.cf in case you would want to undo your changes.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Find out what .mc file Sendmail is using?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway