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: Colin Campbell (sgcccdccitec.qld.gov.au)
Date: Mon Dec 03 2007 - 17:14:45 CST


Hi,

On Mon, 2007-12-03 at 11:30 -0500, Brian Mathis wrote:
> On Dec 3, 2007 10:51 AM, mouss <mlist.onlyfree.fr> wrote:
> > Brian Mathis wrote:
> > > Installing postfix on CentOS is a matter of:
> > > yum install postfix
> > > yum remove sendmail
> >
> > # yum install postfix
> > ....
> > postfix i386 2:2.2.10-1.1.el4.centos.mysql_pgsql.plus
> > ...
> >
> > # postconf -a
> > postconf: invalid option -- a
> > ...
> >
> > so this doesn't support dovecot sasl, and only supports cyrus sasl:
> >
> > # ldd /usr/libexec/postfix/smtpd | grep sasl
> > libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x0028c000)
> >
> > Compare to this:
> >
> > # rpm -q postfix
> > postfix-2.4.3-1.rhel4
> > # postconf -a
> > dovecot
> >
> > > 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.
> >
> > you can get an srpm from:
> > http://ftp.wl0.org/official/2.4/SRPMS/
> > and build an rpm. then either install the rpm or put it in a local yum
> > repository and use yum.
> >
> > > 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.
> >
> > care must indeed be taken with regard to dependencies such as mysql,
> > postgres, ldap, ... etc. otherwise, it is ok to rebuild postfix from
> > sources. That said, building an rpm will keep package mgmt working
> > correctly and would prevent problems if a dependency update requires a
> > rebuild.
>
>
> As I said, "Unless you have a specific need". This user is new to
> both Linux and postfix, and mentioned nothing of those specific needs.
> The fact is that out of the box, the postfix package works just fine
> for many uses.
>
> As far as your version numbers, I'm not sure where you're getting
> those. It looks like you might have the centosplus repository
> enabled, which has packages that are not standard. The main repo has
> the file: postfix-2.3.3-2.i386.rpm, and for me:
>
> # postconf -a
> cyrus
> dovecot
>
> This is on a CentOS 5.1 system.
>
> Also, breaking the package management system should be seen as the
> ultimate sin, not just a mere inconvenience. The package management
> system is the very reason that one uses an enterprise-grade OS like
> centos. I agree that if ABSOLUTELY necessary, one should compile to
> an rpm first, then install the rpm.

Just a word of warning, having been bitten by this once: Some RHEL
versions contain packages with a dependency on "smtpdaemon". "mdadm" is
one such package. If you remove all SMTP packages, and install postfix
from source, the next time you run "yum update" or "up2date" you'll get
a dependency failure and most likely exim will be installed for you.

Colin

--
Colin Campbell
Unix Support/Postmaster/Hostmaster
Citec
+61 7 3227 6334