LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mans Nilsson <[log in to unmask]>
Thu, 2 Oct 2003 07:58:53 +0200
text/plain (50 lines)
Subject: Re: Spool directory full of .mail files Date: Wed, Oct 01, 2003 at 11:03:14PM -0400 Quoting Valdis Kletnieks ([log in to unmask]):
 
> A good idea in general, but it isn't easy to do for Sendmail because a LOT
> of code assumes that it lives in the "expected" places.
> 
> All sorts of things will break in evil and mysterious ways if /usr/sbin/sendmail
> doesn't point to something useful, to the point that I believe both qmail
> and postfix ship a /usr/sbin/sendmail replacement.

Nit: The Important Place is actually "/usr/lib/sendmail" on a lot of 
SysVish boxen like Solaris. 

Further, the mishap can be avoided by making sure the OS does not
think there is a Sendmail package on the system, making most
well-behaved patch systems ignorant about the sendmail binary. 

On Solaris, this works for me: 

 - Find the .mc file used to build your sendmail.cf, and make a copy
of it, safekeeping it. If unavailable, pray that the stock one will
work.

 - Build a new sendmail, but do not install it.

 - Build a new sendmail.cf from your old .mc or from the Solaris standard,
   resides in /usr/lib/mail/cf or inside the Sendmail source tree.

 - Some commands:
cd /etc
tar cvf mail.bak.tar mail init.d/sendmail default/sendmail
pkgrm SUNWsndmu SUNWsndmr
tar xvf mail.bak.tar
ln init.d/sendmail rc0.d/K36sendmail
ln init.d/sendmail rc1.d/K36sendmail
ln init.d/sendmail rc2.d/S88sendmail
ln init.d/sendmail rcS.d/K36sendmail
cd /path/to/sendmail/build
sh Build 

 - Restart the service and be happy.

YMMV, of course. 
-- 
Måns Nilsson         Systems Specialist
+46 70 681 7204         KTHNOC
                        MN1334-RIPE

The appreciation of the average visual graphisticator alone is worth
the whole suaveness and decadence which abounds!!

ATOM RSS1 RSS2