[Exim] 4.24 rpm might loose /usr/sbin/sendmail (was: exim RP…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Andreas Metzler
Päiväys:  
Vastaanottaja: exim-users
Vanhat otsikot: [Exim] exim RPM update
Aihe: [Exim] 4.24 rpm might loose /usr/sbin/sendmail (was: exim RPM update)
On Wed, Jun 18, 2003 at 01:51:59PM -0400, Neal D. Becker wrote:
> I have modified the exim-4.20 RPM spec. A couple of changes:
>
> 1) Support for alternatives (used in RH9+ and others)
> 2) Added localscan_dlopen.patch

[...]
> %post
> /sbin/chkconfig --add exim
>
> /usr/sbin/alternatives --install /usr/sbin/sendmail mta /usr/sbin/sendmail.exim 10 \
>         --slave /usr/bin/mailq mta-mailq /usr/bin/mailq.exim \
>         --slave /usr/bin/newaliases mta-newaliases /usr/bin/newaliases.exim \
>         --slave /usr/share/man/man1/mailq.1.gz mta-mailqman /usr/share/man/man1/mailq.exim.1.gz \
>     --initscript exim

>

[...]
> %preun
> if [ $1 = 0 ]; then
>     /sbin/service exim stop > /dev/null 2>&1
>     [ -d /var/log/exim ] && rm -f /var/log/exim/*
>     /sbin/chkconfig --del exim
> fi


Looks like Nigel chose to include this in the 4.24 rpm, however when
Upgrading from 4.22 (without alternatives support) this left me
without a /usr/sbin/sendmail link. Output of cronjobs begone.[1] I am
running RedHat 7.3, just for reference.

I had to first run
/usr/sbin/alternatives -remove mta /usr/sbin/sendmail.exim
followed the "alternatives --install" quoted above.

The %post script _had_ run, because I had a bunch of symlinks for exim
/in /etc/alternatives, just not the inportant one.
            cu andreas
[1] Silly me, I only tested whether SMTP worked after the upgrade, who
would have thought that a simple link might break. ;-)