Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2002 15:52:26 +0100
From:      "Rick Hoppe" <mailing@rickhoppe.nl>
To:        <freebsd-stable@FreeBSD.ORG>
Cc:        <jerry@thehutt.org>, <calvinng@brel.com>, "Crist J. Clark" <cjc@FreeBSD.ORG>
Subject:   RE: Sendmail broken after upgrade 4.4-RELEASE to 4.5-STABLE
Message-ID:  <MLECKHBMGODPBDHNOIAAGEMLCJAA.mailing@rickhoppe.nl>
In-Reply-To: <20020215031108.M36782@blossom.cjclark.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message-----
> [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Crist J. Clark
> Sent: vrijdag 15 februari 2002 12:11
> Subject: Re: Sendmail broken after upgrade 4.4-RELEASE to 4.5-STABLE
>
>
Okay. I got the point about mailwrapper now. I dived into the friendly
manpages about this. Let's say that make world corrects my previous mistake
that I replaced /usr/sbin/sendmail, and replaces it with a copy of
/usr/libexec/sendmail/sendmail. How else could it happen or where else did
it get the binary from? I suppose that if I commented out the NO_SENDMAIL
line from /etc/make.conf, again the /usr/sbin/sendmail would be replaced but
this time with the version that came with that FreeBSD release.

It looks like that when an custom updated sendmail is installed according to
the FreeBSD hierarchy, and therefore is placed in /usr/local/sbin there
would be no problem. Although I really wasn't aware about mailwrapper.

So this concludes:

ns1# ls -ld /usr/sbin/sendmail
lrwxr-xr-x  1 root  wheel  21 Feb 15 15:23 /usr/sbin/sendmail ->
/usr/sbin/mailwrapper
ns1#
ns1# cat /etc/mail/mailer.conf
# $FreeBSD: src/etc/mail/mailer.conf,v 1.2 1999/12/29 18:24:06 peter Exp $
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
sendmail        /usr/local/sbin/sendmail
mailq           /usr/local/sbin/sendmail
newaliases      /usr/local/sbin/sendmail
ns1#
ns1# ls -ld /usr/local/sbin/sendmail
-r-xr-sr-x  1 root  smmsp  554197 Feb 14 21:38 /usr/local/sbin/sendmail

So /usr/sbin/sendmail is invoked by /etc/rc, that is symlinked to
/usr/sbin/mailwrapper which will find in /etc/mail/mailer.conf that sendmail
is located at /usr/local/sbin. I hope in future releases of FreeBSD that as
default /usr/sbin/sendmail will be symlinked to /usr/sbin/mailwrapper. If
this was the case in first place, I would have Googled and RTFM to find out
what /usr/sbin/mailwrapper function was (when I upgraded sendmail).

BTW, my comment on the fixit cd was not about using that CD for upgrading my
other system. I meant to say that I never used that cd, and it may be a good
lesson to learn to use it (when something goes wrong). I don't hope
something goes wrong, but when it does go wrong, it's a good fix-it cd
lesson for me.

Crist J., Calvin and Jerry, thanks for your replies. The last reply from
Jerry is probably what I wanted to achieve when I started make world. But
now I also understand that mailwrapper is something I should use, when I
want to play with different MTA's.


Regards,

Rick Hoppe
Network- and Systemspecialist
Xtraxion Internet



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MLECKHBMGODPBDHNOIAAGEMLCJAA.mailing>