From owner-freebsd-questions Mon Nov 4 0: 9:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B854137B401 for ; Mon, 4 Nov 2002 00:09:22 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E914443E88 for ; Mon, 4 Nov 2002 00:09:16 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gA4896MO016350 for ; Mon, 4 Nov 2002 08:09:06 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gA4891ug016349 for freebsd-questions@FreeBSD.ORG; Mon, 4 Nov 2002 08:09:01 GMT Date: Mon, 4 Nov 2002 08:09:01 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: Default Sendmail install with FreeBSD Message-ID: <20021104080901.GA16056@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.4 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Nov 03, 2002 at 11:51:37PM -0600, KizerSoze wrote: > Once the system is booted up how can I tell what .cf file sendmail has > loaded?? I think that the .cf file I think is loaded is in fact not, and I > need to find a way to verify this. Look at /var/run/sendmail.pid --- unusually for most daemons it records not just the PID but also the command line used to start the process: # cat /var/run/sendmail.pid 243 /usr/sbin/sendmail -L sm-mta -bd -q30m Now, if there is a '-C /some/file.cf' flag there, then that's the .cf file you're using. Otherwise you're going to be using the compiled in default, which for the MTA process is /etc/mail/sendmail.cf The same thing holds for the MSP (mail submission process) sendmail instance, but using different files. The PID file is in /var/spool/clientmqueue/sm-client.pid: # cat /var/spool/clientmqueue/sm-client.pid 124 /usr/sbin/sendmail -L sm-msp-queue -Ac -q30m and in this case, the corresponding default config file is /etc/mail/submit.cf Default locations of .cf and similar files are documented in sendmail(8) and /usr/share/sendmail/cf/README, although you have to hunt about in the file to find all the details of the MSP stuff. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message