Date: Mon, 20 Sep 1999 09:54:52 -0700 (PDT) From: David Wolfskill <dhw@whistle.com> To: anders@wax.nu, freebsd-isp@FreeBSD.ORG Subject: Re: Reverse engineering of sendmail.cf Message-ID: <199909201654.JAA28260@pau-amma.whistle.com> In-Reply-To: <026101bf0387$47e17750$c47145c1@elanders.no>
next in thread | previous in thread | raw e-mail | index | archive | help
>From: "Anders Hanssen" <anders@wax.nu> >Date: Mon, 20 Sep 1999 18:43:34 +0200 >Is it possible to reverse engineer the sendmail.cf file to a .mc file? Not automatically, as far as I know. >The mailserver was configured (some time ago) by a (to me) unknown person. >Now I'm setting up a new mailserver with a newer version of sendmail, and >would like to understand what the old config file did, instead of just >copying it. >I don't like the .cf file-format at all ;( so having it as .mc would be >great. >Any ideas? Well, if the .cf was created from a .mc file, and if it wasn't hacked too badly afterward, you should be able to see some "boiler-plate" text in the .cf that identifies its origina, as well as some comment statements that identify which .m4 files the .mc file brought in (typically, as a result of the use of FEATURE statements). About the best thing I can suggest is getting a sendmail/cf hierarchy for the version of sendmail being used, then generate a .cf & use "diff" to see the differences between what you create and what you already have. (The use of a hierarchy that corresponds to what you already have is useful because some of the .m4 code in the .m4 files has changed from one release to another, so those changes will cause changes in the generated .cf, even if the .m4 was identical. This would, at best, lead to confusion.) If the .cf was hacked sufficiently, or built from scratch (without using the .mc file), stripping the blank lines and comment lines before doing the diff may help. Cheers, david -- David Wolfskill dhw@whistle.com UNIX System Administrator voice: (650) 577-7158 pager: (888) 347-0197 FAX: (650) 372-5915 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909201654.JAA28260>