|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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) |
|
#2
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Mail Server Help > Find out what .mc file Sendmail is using? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|