From owner-freebsd-questions Sun Dec 8 4:31:39 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 1AAD137B401 for ; Sun, 8 Dec 2002 04:31:28 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85D6943ED1 for ; Sun, 8 Dec 2002 04:31:27 -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 gB8CVI46008593 for ; Sun, 8 Dec 2002 12:31:18 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 gB8CVDDp008592 for questions@FreeBSD.ORG; Sun, 8 Dec 2002 12:31:13 GMT Date: Sun, 8 Dec 2002 12:31:13 +0000 From: Matthew Seaman To: FreeBSD Questions Subject: Re: Sendmail 8.12.6 install Message-ID: <20021208123113.GB8184@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , FreeBSD Questions References: <5.1.0.14.2.20021207225543.00a65ec0@mail.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20021207225543.00a65ec0@mail.earthlink.net> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.43 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 Sat, Dec 07, 2002 at 11:35:20PM -0800, David R. Stegner wrote: > Wanted, or thought I should upgrade to 8.12.6 to try and learn about > implement milter stuff. > > 1. CVSUP'd Sendmail 8.12.6 port a few days ago. > > 2. ran make in /usr/ports/mail/sendmail I assume you also ran 'make install' at some point. > 3. read and followed the INSTALL instructions and associated README files. > > > > When I rebooted by system, 8.11.6 was still running. > > I can run 8.12.6 manually. > > Where I am confused: > > 8.11.6 install was > > sendmail executable in /usr/libexec/sendmail/ > usr/sbin/sendmail was pointer to /usr/sbin/mailwrapper > mailer.conf pointed to /usr/libexec/sendmail/sendmail > rc.conf reflected 8.11.6 flags, etc > > after 8.12.6 install complete > > sendmail executable in /usr/local/sbin/ What about mailwrapper ? The port installation should have generated a new /etc/mail/mailer.conf file for you, redirecting everything to the newly installed /usr/local/libexec/sendmail Plus have you looked at the /usr/local/etc/rc.d/{sendmail.sh.sample,sm-client.sh.sample} scripts, customized them as necessary and renamed them without the .sample suffix? [Remember that with sendmail 8.12.x you're going to be running two instances of sendmail: the sm-mta and sm-msp processes] > Is 4.4R too old to use 8.12.6 port? It's possible, but I'd guess unlikely. Ports are only officially required to work on supported releases, recent versions of 4-STABLE and 5-CURRENT. However, they will generally work on slightly older versions, like yours. sendmail-8.12.6 itself should run fine: the problem would probably be with incompatibilities during the port installation. > Is port install supposed to update rc.conf? As I understand it, you should use the /usr/local/etc/rc.d startup scripts to start the ports version of sendmail, and disable sendmail within /etc/rc.conf. If your system is sufficiently up to date that /etc/rc.sendmail has all the correct knobs for starting up sendmail MTA and MSP stuff then you could use that mechanism instead, but in that case, you've probably already got sendmail 8.12.x in the base system, so why install the port? (Well, to answer my own rhetoric, unless you want the Cyrus SASL stuff: see http://www.freebsd.org/cgi/getmsg.cgi?fetch=0+4913+/usr/local/www/db/text/2002/freebsd-security/20020922.freebsd-security). In either case, installing the port won't make any modifications to /etc/rc.conf. > Is port install supposed to utilize mailwrapper. Yes. There's a 'mailer.conf' target in the port Makefile that should have set things up for you. > In desperation I tried std port install instructions: > > Make in /usr/ports/mail/sendmail > > Make install in /usr/ports/mail/sendmail > > Received the following: > > ===> Installing for sendmail-8.12.6_1 > if ! pw groupshow smmsp; then pw groupadd smmsp -g 25; fi > smmsp:*:25: > if ! pw usershow smmsp; then pw useradd smmsp -g smmsp -u 25 -h - -d > /nonexiste > nt -s /nonexistent -c "Sendmail Queue"; fi > smmsp:*:25:25::0:0:Sendmail Queue:/nonexistent:/nonexistent > @dirrm share/sendmail: not found > *** Error code 127 > > Stop in /usr/ports/mail/sendmail. > *** Error code 1 > > Stop in /usr/ports/mail/sendmail. > *** Error code 1 > > Stop in /usr/ports/mail/sendmail. This looks to me like the source of the problem. The install fell over before it had completely finished. Something to do with installing the m4 sources etc. under /usr/local/share/sendmail. You need to get that install to run to completion before you can properly use the new sendmail. What does: pkg_info -g sendmail\* say? What is there in /usr/local/share/sendmail ? If it's not there at all, have you tried: mkdir -p /usr/local/share/sendmail first and then retried the installation? That really shouldn't be necessary: probably something that broke between 4.4 and 4.7 --- if it's reproducible on an up to date system, it would be worth a PR. If this is the only sendmail version you've ever installed from ports, then you may find the use of FORCE_PKG_REGISTER helpful: cd /usr/ports/mail/sendmail make install FORCE_PKG_REGISTER=yes That will over-write a previously installed sendmail package without quibbling, so use carefully. 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