Re: portupgrade for ssh & sendmail

From: Bill Vermillion (bv_at_wjv.com)
Date: 10/07/03


Date: Tue, 07 Oct 2003 06:05:01 GMT

In article <blpkjp$ejaoj$1@ID-62754.news.uni-berlin.de>, surfsofa
<surfsofa@hotmail.com> wrote:

>I've just cvsup'ed my ports collection and was hoping to use
>portupgrade to update ssh and sendmail to the latest versions.
>However, if I run 'portupgrade -n -ra' to check what will be
>done neither of these packages show up. If I try 'portupgrade -n
>ssh' it tells me I have no such package installed.

>It appears that only the packages *I've* installed from the
>ports collection get picked up by portupgrade. I'm guessing it's
>because ssh and sendmail were pre-installed when the system was
>initially built that portupgrade doesn't see these.

>Is that right? If so is there any way to get 'preinstalled'
>packages like these included in a portupgrade sweep? Or will I
>need to look to another solution for these packages?

As others has mentioned these are part of the base and not ports
so they won't upgrade.

However it's really quite easy to get the new version of sendmail
running. Got to the ports directory, /usr/ports/mail/sendmail
and type 'make' and then make install [I always like to make it a
two step process].

You will get a screen at the end of the install giving you
directions on how to get the new sendmail running.

The way FreeBSD installs sendmail is that it uses a mailer.conf
file - so that you can put any mailer in place and still call it by
the name sendmail so you don't break the system.

Edit the mail conf after making the sendmail port so
that the lines with /usr/libexec/sendmail/sendmail now read
/usr/local/sbin/sendmail. [That's presuming you took the default
on installing the new port].

Restart your sendmail, and that is it. The sendmail 8.12.10
in ports is what you should be using to make sure all the holes
are patched. It's really quite painless.

For openssh in ports you can put the startup in the /etc/rc.conf
by putting the line sshd_program="/usr/local/bin/sshd" [check
that name on install], or take the sshd_enable="yes" out of rc.conf
and start ssh from the script which the port will install
in /usr/local/etc/rc.d

Just remember to kill whichever programs you have running, sendmail
or sshd, before you start the new ones. And be sure to install the
sshd locally as if you are logged in over ssh you'll become
disconnected.

Bill

-- 
Bill Vermillion - bv @ wjv . com


Relevant Pages

  • Sendmail - IMAP-UW - Cyrus-SASL2 - SMTPAUTH problems
    ... I'm trying to set up a FreeBSD 6.0 box as a mail server, and while everything seems to be working OK for the most part, I have run into two issues that I cannot resolve. ... IMAP-UW was compiled via ports with WITH_SSL_AND_PLAINTEXT enabled, OpenSSL, Cyrus-SASL2 & Cyrus-SASL2-saslauthd were compiled via ports with no flags. ... Sendmail was installed with the base install and recompiled with the following options added to make.conf: ... I followed the instructions I found at http://www.bsdconspiracy.net/howto/sendmail.html, and had no problems with the install except for Sendmail. ...
    (freebsd-questions)
  • Re: sendmail vs fetchmail?
    ... Then again, I always install the ... actually getting sendmail to work correctly and securely in the first ... > from the ports that might have auth already built in, ... base sendmail and have update notifications with working fixes rather than ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Minimal install RH8?
    ... In fact it is the same install after I have checked the size on ... > other package groups which require sendmail or ssh. ...
    (RedHat)
  • Re: Minimal install RH8?
    ... In fact it is the same install after I have checked the size on ... > other package groups which require sendmail or ssh. ...
    (RedHat)
  • Ports Vs Base
    ... I have a question about sendmail. ... Initially, when I installed FreeBSD, I installed sendmail from the base ... up to date within ports, by updating my ports tree, and doing a ... and install the ports version. ...
    (freebsd-questions)