Mate Wierdl writes:

> I just want to confirm: when you upgrade to a RH 5.2 system, sendmail
> does get installed on your system, even if you have qmail rpm
> installed with saying "provides MTA, smtpdaemon" and "conflicts
> sendmail".  

> To be functional again:
> 
> Once you stopped your sendmail, remove the darn package:
> 
> rpm -e sendmail
> 
> Set the links
> 
> ln -s ../../var/qmail/bin/sendmail /usr/lib/sendmail
> ln -s ../../var/qmail/bin/sendmail /usr/sbin/sendmail

If you prepare in advance, your migration path is rather straightforward. 
I used the following procedure to migrate from 5.0 to 5.1, and that's also
what I will do this time:

1) My Qmail RPM includes the appropriate softlinks.  My Qmail RPM installs
every possible control file, initializing them with default values. 
Control files that specify a machine name are installed as empty files, 0
bytes long.  A %post installation script initializes them with the output
of `hostname`.  All control files are marked %config in the spec file.  The
%post installation script will also restore any saved .rpmsave control
files that it finds, overwriting the default control file installed by the
RPM.

2) Before the upgrade I remove Qmail.  rpm -e qmail.  My %preun script
invokes the initscript to shut down Qmail prior to removing it.

3) After the upgrade, I remove sendmail, rpm -e sendmail, and reinstall the
Qmail RPM.  I either reboot, or manually rerun the initscript to restart
Qmail.

That's pretty much it.  The soft links are restored automatically.  All the
control files which were saved as .rpmorig files during deinstallation are
reinstalled.

> Ps: this is ridiculous.

Yes, but there's an easy workaround.  Just three additional commands you
have to type in at the console.  You don't even have to flush the mail
queue.

Reply via email to