Re: Sendmail 8.12.6 install

2002-12-08 Thread Matthew Seaman
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 [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Sendmail 8.12.6 install

2002-12-08 Thread Dirk Meyer
Hi David R. Stegner,
 1.  CVSUP'd Sendmail 8.12.6 port a few days ago.
 2.  ran make in /usr/ports/mail/sendmail
 3.  read and followed the INSTALL instructions and associated README files.
 
 When I rebooted by system, 8.11.6 was still running.

you forgot to do:
# cd /usr/ports/mail/sendmail  make mailer.conf

 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

This is sendmail in the base installation.

 after 8.12.6 install complete
  sendmail executable in /usr/local/sbin/


This is a ports installation.

 Is 4.4R too old to use 8.12.6 port?

no.

 Is port install supposed to update rc.conf?

no.
You must update mailer.conf by hand, or by make mailer.conf

 Is port install supposed to utilize mailwrapper.

yes.

as the message tells:
[...]
---
To activate sendmail as your default mailer, call the target 'mailer.conf':
/usr/ports/mail/sendmail$ make mailer.conf

Your '/etc/mail/mailer.conf' should look like this:
#
[...]

 Make install in /usr/ports/mail/sendmail
 Received the following:
 
 ===  Installing for sendmail-8.12.6_1
[...]
 smmsp:*:25:25::0:0:Sendmail Queue:/nonexistent:/nonexistent
 @dirrm share/sendmail: not found
 *** Error code 127

please check:

# make -V ECHO_CMD
echo

if this does not show, please cvsup /usr/ports/Mk.

kind regards Dirk

- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
- [[EMAIL PROTECTED]],[[EMAIL PROTECTED]],[[EMAIL PROTECTED]]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message