Re: Postfix smtp freezing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Jason Ross spake the following on 8/9/2007 4:18 PM:
> I am currently running
> Centos 4.3
> postfix-2.2.10-1.RHEL4.2
> mailscanner-4.57.6-1
> 
> The problem is I'm not yet smart enough to patch it quickly.
> 
> But would patching it fix the issue or create more???
> 
> If so how would I roll back quickly?
> 
First thing I would do is run yum update to bring the system patches up to speed.

You will have a kernel update if you haven't updated for 8 months, so you will
need a reboot.

Then you can use the following script to backup your mailscanner installation.
It is set up to run as root, and keep its stuff there.
*******<cut>*****
#!/bin/bash

cp -a /etc/MailScanner /etc/MailScanner.$(date +%Y%m%d)
cp -a /usr/lib/MailScanner /usr/lib/MailScanner.$(date +%Y%m%d)
cp -a /usr/sbin/MailScanner /usr/sbin/MailScanner.$(date +%Y%m%d)

echo cp -a --remove-destination /etc/MailScanner.$(date +%Y%m%d)
/etc/MailScanner > /root/restorems-$(date +%Y%m%d).sh
echo cp -a --remove-destination /usr/lib/MailScanner.$(date +%Y%m%d)
/usr/lib/MailScanner >> /root/restorems-$(date +%Y%m%d).sh
echo cp -a --remove-destination /usr/sbin/MailScanner.$(date +%Y%m%d)
/usr/sbin/MailScanner>> /root/restorems-$(date +%Y%m%d).sh
chmod +x /root/restorems-$(date +%Y%m%d).sh

echo rm -fr /etc/MailScanner.$(date +%Y%m%d) > /root/delmsback-$(date +%Y%m%d).sh
echo rm -fr /usr/lib/MailScanner.$(date +%Y%m%d) >> /root/delmsback-$(date
+%Y%m%d).sh
echo rm -fr /usr/sbin/MailScanner.$(date +%Y%m%d) >> /root/delmsback-$(date
+%Y%m%d).sh
echo rm -fr /root/restorems-$(date +%Y%m%d).sh  >> /root/delmsback-$(date
+%Y%m%d).sh
echo rm -fr /root/delmsback-$(date +%Y%m%d).sh  >> /root/delmsback-$(date
+%Y%m%d).sh

chmod +x /root/delmsback-$(date +%Y%m%d).sh

*******<cut>*****

This will back up your mailscanner setup with the current date. You can then
install the latest from Julian's install tarball and be sure you run the
update_mailscanner_conf and update_languages_conf scripts. Then you can
restart MailScanner.

If you need to restore a backup just run the restorems script with the date of
your backup.

I would also recommend updating spamassassin, but to get detailed help, we
need to know if you are running the spamassassin that came with CentOS, or if
you installed from Julian's clamav-spamassassin tarball.

-- 

MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux