No --- Don't --- Install another MTA before you try to remove sendmail.
Where's the difference?
Using --nodeps can break stuff.
Instead to:
yum install postfix
then,
yum remove sendmail (if necessary)
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-03-2007, 03:57 PM
"Brian Mathis"
CentOS 5 and removing sendmail
On Dec 3, 2007 11:50 AM, Christian Volker <cvolker@vmware.com> wrote:
> Yohoo!
>
> >>> # rpm -e sendmail
> >>> error: Failed dependencies:
> >> rpm -e sendmail --nodeps
> >No --- Don't --- Install another MTA before you try to remove sendmail.
>
> Where's the difference?
>
> Christian Volker
> Technical Support Engineer
Because using nodeps is a bad habit to get into, and can easily break
things. If you install postfix first, then remove sendmail,
everything will be happy and you don't have to worry about it. You
won't be introducing possible unknowns into the system.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-03-2007, 04:04 PM
"Joseph L. Casale"
CentOS 5 and removing sendmail
>No --- Don't --- Install another MTA before you try to remove sendmail.
>Warned you have been!
Well, unless you install postfix first, then system-switch-mail, then execute switch-mail, how does the stuff that needs sendmail know what to use? If you take out sendmail first, it removes other dependent stuff, but if you install postfix and the switch-mail util, when you remove sendmail it goes away without complaint.
Thanks!
jlc
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-03-2007, 04:22 PM
Les Mikesell
CentOS 5 and removing sendmail
Joseph L. Casale wrote:
No --- Don't --- Install another MTA before you try to remove sendmail.
Warned you have been!
Well, unless you install postfix first, then system-switch-mail, then execute switch-mail, how does the stuff that needs sendmail know what to use? If you take out sendmail first, it removes other dependent stuff, but if you install postfix and the switch-mail util, when you remove sendmail it goes away without complaint.
'Stuff that needs sendmail' normally executes a command named sendmail,
usually as /usr/sbin/sendmail. Installing postfix will supply one, and
system-switch-mail manipulates which one is active if you have both
through a symlink scheme. If you try to run something that needs
sendmail without a working /usr/bin/sendmail program, it will fail to
deliver anything but your system won't crash and burn.
--
Les Mikesell
lesmikesell@gmail.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-03-2007, 04:35 PM
Stephen Harris
CentOS 5 and removing sendmail
On Mon, Dec 03, 2007 at 10:04:30AM -0700, Joseph L. Casale wrote:
> Well, unless you install postfix first, then system-switch-mail, then
> execute switch-mail, how does the stuff that needs sendmail know what to use?
This is the "alternatives" system at work. /usr/sbin/sendmail
is a symlink to /etc/alternatives/sendmail. The "alternatives"
system will manage the /etc/alternatives/sendmail symlink, so that
if your mail system is configured as "sendmail" then it points to
/usr/sbin/sendmail.sendmail which is the _actual_ sendmail command
provided by the sendmail RPM package. If your mail system is postfix
then it points to /usr/sbin/sendmail.postfix instead.
--
rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-03-2007, 06:05 PM
Miark
CentOS 5 and removing sendmail
On Mon, 03 Dec 2007 10:04:30 -0700, Joseph wrote:
> >No --- Don't --- Install another MTA before you try to remove
> >sendmail. Warned you have been!
>
> Well, unless you install postfix first, then
> system-switch-mail, then execute switch-mail, how does the
> stuff that needs sendmail know what to use?
But you only need switch-mail if you have both Sendmail and
Postfix, right? IOW, if you want to use Postfix exclusively,
you could just install Postfix and remove Sendmail. That's what
I did, and my mail system is working just fine.
Miark
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-03-2007, 06:22 PM
Kenneth Porter
CentOS 5 and removing sendmail
--On Sunday, December 02, 2007 3:11 PM -0700 "Joseph L. Casale"
<jcasale@ActiveNetwerx.com> wrote:
I assume when you use the package manager to install an application it
takes care of creating users for services and all other related
requirements, or is just a matter of tracking the installed programs
files for later removal or interference with another installed program? A
quick search on the net suggested yum was a better tool to use as it
handled downloading and additional dependencies? I assume yum can't be
used for this scenario?
A package is built using a "spec" file, which can be thought of as a
meta-Makefile. It has the RPM header info (author, URL, description, etc.)
and describes the sequence of operations to unpack the tarball, apply any
patches, configure and make, install to a (user-owned) directory tree
mirroring the final installation location, and then archive the whole mess
up into a binary RPM. It also optionally includes scripts to run before and
after install/uninstall. You can add logic here to add users and start/stop
services. All of this is done as non-root, and file ownership information
(eg. special user or root) is written in the binary RPM.
Later, root installs the binary RPM and the files are installed to their
final location, with the requested ownership and access rights. The scripts
are run to perform any special setup/takedown and the file list and header
is written to the host's RPM database.
Looking around, I found the following file:
http://mirror.centos.org/centos/5.0/os/SRPMS/postfix-2.3.3-2.src.rpm
which I assume is what you referred to, I don't mind reading on my own
but can you nudge me in the right direction to learn how to adapt this
srpm to use the tarball I am interested in? I read that building the rpm
from source as a mortal user is advised as the forum suggested "so
processes are unnecessarily running as root from the newly created
binary, its more secure"? Does the newly built rpm actually change
behavior once installed depending on who built it, or was that merely
related to process for the build only while compiling?
It's not real difficult. This seems to be a good starting place: