MailScanner v5.0.3-7 upgrade install

Jerry Benton jerry.benton at mailborder.com
Thu Aug 25 08:12:48 UTC 2016


- It seems the uninstall script in 4.85.2 is what is broken.

warning: %postun(mailscanner-4.85.2-1.noarch) scriptlet failed, exit status 2


- There should be saved files in the /root directory from your upgrade.

Here is the logic that creates it from the spec file:

# back up their stuff
SAVEDIR="$HOME/ms_upgrade/saved.$$”;

Your /etc/MailScanner/conf.d files are not touched.



- If you roll back a snapshot, I suggest making a copy of your
configs, totally remove 4.85.2 first, and then install v5. Note that
you should be using /etc/MailScanner/conf.d for your config changes
instead of editing /etc/MailScanner/MailScanner.conf directly.


- If you want to manually fix this:

confirm a copy of your configs is in the /root directory
copy your /etc/MailScanner/conf.d files somewhere
rpm -e mailscanner
rm -rf /etc/MailScanner
rm -rf /usr/lib/MailScanner
rm -rf /usr/share/MailScanner
rm -rf /var/lib/MailScanner

Leave the /var/spool/MailScanner in place.

It is ok if you get does not exist errors from the above rm commands.
Now run the v5 installer.

copy your configs to /etc/MailScanner/conf.d



-
Jerry Benton
www.mailborder.com
+1 - 844-436-6245


-----Original Message-----
From: Jason Ede <j.ede at birchenallhowden.co.uk>
Reply: MailScanner Discussion <mailscanner at lists.mailscanner.info>
Date: August 25, 2016 at 3:43:30 AM
To: MailScanner Discussion <mailscanner at lists.mailscanner.info>
Subject:  RE: MailScanner v5.0.3-7 upgrade install

> I'm struggling with this upgrade too on an up to date CentOS 6 system.
>
> After the upgrade from 4.85.2 it doesn't seem to work. I've attached upgrade logs. I've
> renamed all the reports to remove the .rpmsave and that's tidied things up a bit.
>
> However, all of my original config files have been removed. There was no MailScanner.conf.rpmsave
> or equivalent left after the upgrade and all of my original reports have been deleted.
> The new init file doesn't exist anywhere on my system and the path mentioned doesn't even
> exist.
>
> ls -la /etc/init.d/mailscanner
> lrwxrwxrwx 1 root root 33 Aug 24 15:58 /etc/init.d/mailscanner -> /usr/lib/MailScanner/init/ms-init
>
> At this point I'm going to have to just revert the system to the snapshot prior to the upgrade.
> I'll happily test a fixed upgrade but for the moment it appears completely broken for
> me.
>
> The original MailScanner was installed using the install.sh so I know it was all good
> and files were in proper locations.
>
> Jason
>
>
> -----Original Message-----
> From: MailScanner [mailto:mailscanner-bounces+j.ede=birchenallhowden.co.uk at lists.mailscanner.info]
> On Behalf Of Wolfgang Baudler
> Sent: 24 August 2016 18:16
> To: MailScanner Discussion
> Subject: Re: MailScanner v5.0.3-7 upgrade install
>
> > Does this not setup the sendmail process correctly?
> >
> > https://www.mailscanner.info/sendmail/
> >
> >
>
> This starts the daemons manually, but it takes a bit more then those 2 lines to have a robust
> startup/shutdown script.
>
> I removed the MailScanner parts from the v4 startup script and now have a separate mailscanner-sendmail
> startup script (attached). Maybe this can be included with the MailScanner package.
>
> Wolfgang
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/listinfo/mailscanner
>
>


More information about the MailScanner mailing list