From owner-freebsd-questions@FreeBSD.ORG Mon Oct 22 12:47:50 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D37116A417 for ; Mon, 22 Oct 2007 12:47:50 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id E55C413C48A for ; Mon, 22 Oct 2007 12:47:49 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id l9MCkwQe018926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 22 Oct 2007 15:47:19 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l9MCka7K003043; Mon, 22 Oct 2007 15:46:52 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l9MCkRa7003038; Mon, 22 Oct 2007 15:46:27 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 22 Oct 2007 15:46:26 +0300 From: Giorgos Keramidas To: "Tuc at T-B-O-H.NET" Message-ID: <20071022124626.GC1776@kobe.laptop> References: <20071021200737.GA3761@kobe.laptop> <200710212042.l9LKgCPb046397@himinbjorg.tucs-beachin-obx-house.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200710212042.l9LKgCPb046397@himinbjorg.tucs-beachin-obx-house.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.984, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.41, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Want to upgrade sendmail in next OS release X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2007 12:47:50 -0000 On 2007-10-21 16:42, "Tuc at T-B-O-H.NET" wrote: >>On 2007-10-21 11:28, "Tuc at T-B-O-H.NET" wrote: >>> Hi, >>> >>> I'd like to upgrade my sendmail version in advance of upgrading to the >>> next release of the OS. >> >> Why? > > I can afford the time to start/stop sendmail here and there, but I > have to schedule the maintenance window to upgrade this particular > machine. I see. I'd still go for the maintenance window option, unless there is a _very_ pressing need to upgrade Sendmail *today* because of a security update, but you have a point :) >>> # cd /usr/src/lib/libsm >>> # make obj && make depend && make >>> # cd /usr/src/lib/libsmutil >>> # make obj && make depend && make >>> # cd /usr/src/usr.sbin/sendmail >>> # make obj && make depend && make && make install >> >> This can be done only if you manage to upgrade Sendmail sources and >> their build-glue manually, by following *exactly* the same process that >> Gregory Shapiro (our native Sendmail maintainer) uses to do it. > > So where do I find that? I took those instructions from previous > FreeBSD Security announcements against sendmail. The process is described in `/usr/src/contrib/sendmail/FREEBSD-upgrade', but it takes a certain amount of experience with CVS and merging. Even if you don't really want to use CVS to merge the changes yourself, the list of build/install/runtime infrastructure files near the end of this file will prove veery useful. Quoting from a recent copy: % The following files make up the sendmail build/install/runtime % infrastructure in FreeBSD: % % Makefile.inc1 % bin/Makefile % bin/rmail/Makefile % contrib/sendmail/ % [...] >> You are also missing some parts of Sendmail above, like: >> >> /usr/src/bin/rmail >> /usr/src/usr.bin/vacation >> /usr/src/etc/sendmail > > rmail - 99% of delivery is procmail, but good point. > vacation - Not used > etc/sendmail - I don't use default mc's, and don't mind > running older cf's on a newer version. The > change between 8.13 and 8.14 wasn't enough for > us to need to. Interesting bits of that list are: lib/libmilter/Makefile lib/libsm/Makefile lib/libsmdb/Makefile lib/libsmutil/Makefile libexec/mail.local/Makefile libexec/smrsh/Makefile usr.bin/vacation/Makefile usr.sbin/editmap/Makefile usr.sbin/mailstats/Makefile usr.sbin/makemap/Makefile usr.sbin/praliases/Makefile usr.sbin/sendmail/Makefile usr.sbin/mailwrapper/Makefile For future upgrades of Sendmail, it would probably be a good idea to upgrade the libraries *first* and only when you are done building the new libraries to install everything. It may be possible to build everything with MAKEOBJDIRPREFIX='/usr/obj', and install in one go when you are done with everything, but that's something you should probably experiment a bit with -- preferrably in a test machine, before you do the same on a live system. > In the mean time, I got bored, so I did just that. Seems to be working > fine, has processed about 15K emails since. Neat :)