OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Installation Questions

From: Julian Cowley (julianlava.net)
Date: Mon Dec 03 2007 - 18:37:33 CST


On Mon, 3 Dec 2007, Brian Mathis wrote:
> Installing postfix on CentOS is a matter of:
> yum install postfix
> yum remove sendmail
>
> Those are the only commands you need to use. Unless you have a
> specific need to compile postfix, please use the yum/rpm packages
> instead.

Rather than removing sendmail, it's better to use the Red Hat alternatives
system (type man alternatives for more info):

sudo /usr/sbin/alternatives --set mta /usr/sbin/sendmail.postfix

This sets up symbolic links so that the commands sendmail, mailq,
newaliases, etc. use the Postfix equivalents instead of the ones from the
sendmail package (the default out of the box).

> There is rarely a need to compile a package when using a distro like
> Centos, and compiling is actually a bad thing, as it will break the
> package management tools.

It doesn't break the package management tools, but merely bypasses them.