Re: rebuild world with NO_SENDMAIL=YES

From: Bill Vermillion (bv_at_wjv.com)
Date: 10/29/05


Date: Sat, 29 Oct 2005 15:35:01 GMT

In article <3sf0f3Fo6dgcU1@individual.net>,
Keve Nagy <see_my_sig@address.invalid> wrote:
>Hi Newsgroup,

>I am considering to replace sendmail with postfix on an existing,
>up-to-date system. It has ports, packages and apps installed (no
>X). My idea is to do a buildworld having "NO_SENDMAIL=YES" in
>/etc/make.conf. Then remove the files left over from sendmail,
>and build postfix from the ports.

You are making a lot of uneccesary work for yourself.

Just install postfix. Then modify the file /etc/mail/mailer.conf
so that anything that calls sendmail calls the appropriate
MTA - in your case postfix.

This is a good approach because if there are any embedded
applications [people who write web pages love to call sendmail
directly] that call sendmail they will use the MTA of your choice.

You don't have to bebuild the OS nor install it, nor do anything
other than make and install postfix and modify the mailer.conf
file.

>My question is: how risky is a buildworld for my existing
>ports/packages and apps?

It won't affect anything.

>Are these expected to remain "relatively untouched" and operational,
>including the ports/pkg database, or is it more likely that the whole
>thing will get out of sync and I have to reinstall all my
>ports/packages/etc ?

You don't have to do a thing with that. And if you notice
virtually all the things in ports are installed in /usr/local
and do not collide with anything in the base system.

And an example of mailer.conf is that if you install sendmail
from the ports tree, it installs under /usr/local and the
mailer.conf can be pointed to the the new version and you just
leave the old version where it is.

>I am under the impression that buildworld and ports/packages
>can be treated relatively separated, so a buildworld should not
>jeopardise the installed ports and packages. Can somebody confirm
>or deny this please!

Correct. I do buildworlds remotely - and only ONE time have I had
to go to the colo - because some IDIOT - had placed something on
the keyboard of the KVM and it hung the system during reboot.

>Also, I noticed some people mentioning a NO_MAILWRAPPER="YES" line
>together with NO_SENDMAIL in make.conf before the buildworld.
>Now I thought that mailwrapper is *required* in order to safely use an
>mta different then sendmail, for staying compatible with as many things
>as possible.
>Is this not required with a biuldworld without sendmail?

I think you are far better of just leaving thigns as they are and
using mailwrapper which uses the /etc/mail/mailer.conf

If you look in the /usr/sbin directory you will find that
/usr/sbin/sendmail is a link to mailwrapper, which uses
mailer.conf, so you can change your MTAs as often as you wish
by changing mailer.conf until you find an MTA that you like.

>One more question: How do I find the orphaned files left from sendmail
>which I want to delete after the buildworld?

You can dig yourself into a hole if you go chasing pieces/parts and
get the wrong things.

>Earlier in another sendmail-2-postfix thread I received suggestions on
>"find . -mtime +1" in some places. This is great on a minimal, clean,
>new system. But this will find other files on a system that already has
>ports and packages installed.

>Any suggestion regarding this?

As above. It works flawlessly and leaves you a way out if anything
goes wrong.

Bill

-- 
Bill Vermillion - bv @ wjv . com


Relevant Pages

  • Re: [opensuse] How to monitor Linux systems from a focal/central point (was: ranting and raving abo
    ... I'm perfectly well aware of how to set up Postfix, and, for my sins, ... workstation ran Postfix, exim, sendmail or other such MTA. ... this is solely regarding the case of a minimal install on a resource-limited ... client machine that has absolutely no need for an MTA to be installed. ...
    (SuSE)
  • Re: Email Servers
    ... On Thu, 2004-03-04 at 15:08, Paul Dubinsky wrote: ... >> But I still have no clue what I installed I gather sendmail. ... > Sendmail and/or Postfix is installed. ... > install if you're not careful. ...
    (Fedora)
  • Re: Mail Services
    ... > package from the Fedora install. ... I like Sendmail, others Postfix or Exim. ...
    (Fedora)
  • Re: subversion on FreeBSD 4.10
    ... I've upgraded all the ports including perl. ... # CFLAGS controls the compiler settings used when compiling C code. ... # or supported for compiling the world or the kernel - please revert any ... # To avoid running MAKEDEV all on /dev during install: ...
    (freebsd-questions)
  • Re: /etc/alternatives
    ... Its most common use is to switch between sendmail and postfix, ... many programs look for a 'sendmail' binary when they want to, well, send mail. ... postfix you would normally have to uninstall sendmail and then install ... is done using a series of 'slave' links which are automtically switched over ...
    (RedHat)