Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Allan Pritchard on October 22, 2008, 11:03:11 PM

Title: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on October 22, 2008, 11:03:11 PM

Hello,

I'm very new to SME and even newer to Linux in general so please forgive any dumb questions. I own a small architectural company with a few staff but I have ended up as the IT expert as well.

I have been running SME 6 for awhile and I think its great. We upgraded to SME 7.3 last month.

2 days ago I ran the updates for SME server. However when it was installed by my IT mate he turned on the manage packages individually and for some reason all of the repositories were selected including "updates and testing" .

Now our production server has updated itself to SME 7.4 beta 2 which I understand is not a good thing to do, however I don't think I can go backwards. Should I bite the bullet and reload the whole server or will the new release (whenever it comes out) update the server to a stable release.

My second problem is if I have Email virus scanning turned on then no emailsget through. We have tested this over the last two days and are 99% sure its the virus scanning bouncing the emails. When it is turned off the emails often come through 2-3 hrs later when the sender's server try's again. If its left off emails come straight through with no problems

The server seems to be going fine except for this email problem. However it always says it needs updating, even if I update it 10 times in a row. It has two errors mentioned in seperate forums
Error: Missing Dependancy (several including libclamav and clamav)
and
Warning: only V4 signatures can be verified, skipping V4 signatures

Because I cannot find someone with the same problem and who has accidentally updated their server :( I'm nervous trying anything on our production server.

I would appreciate any advise
I can supply logs but please be specific as I'm new at this.

Cheers
Allan

Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Tib on October 23, 2008, 01:26:08 AM
Allan,

Best thing to do is sign up at http://bugs.contribs.org/ (http://bugs.contribs.org/)

Then do a search for bugs in SME 8

If you can't find any then submit your bug ... If you have problems always go to the bug tracker and submit your bugs there.

You will get help a lot faster that way ... and if all works well they can probably help fix the few small issues you have and
you won't have to reload.



Regards,

Tib
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on October 23, 2008, 01:41:45 AM

Thanks Tib

I will search there and submit if I can't find anything.
I didn't think I would find a solution in bugs as it was an act of stupidity rather than a bug.

Cheers
Allan. 
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: janet on October 23, 2008, 03:44:55 AM
Allan Pritchard

sme7.4 is in a well advanced state, and apart from minor issues you should be "safe enough" to continue using it as your production server, although it's generally not recommended to everyone to do so. Upgrade to the final 7.4 release should work OK, which seems like it may be very soon.


Quote
..he turned on the manage packages individually and for some reason all of the repositories were selected including "updates and testing" .

So the first thing to do is to disable any of those additional repos.
In server manager you should ONLY see the following repos enabled.

CentOS - os
CentOS - updates
SME Server - addons
SME Server - os
SME Server - updates


Quote
My second problem is if I have Email virus scanning turned on then no emails get through.

Are you sure it's the virus scanner ?
What is it that you actually disabled in server manager to prove that it is the virus scanning causing the problem.

Please advise the bug # you lodged.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: janet on October 23, 2008, 04:13:51 AM
Allan Pritchard

After disabling the updates testing repo, then try this.

Log in as root at the console & do

rpm -e clamav clamav-db clamd

then do
yum update clamav

This should remove the newer "unwanted" clamxxx rpm versions, and reinstall the current versions that are OK with sme7.3

Let us know what happens, and please record carefully any error messages you received and tell us what they are.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on October 23, 2008, 04:29:39 AM
What I did was....

in the server-manager under "configuration" -> "email" -> "change e-mail reception settings" I turned off Virus Scanning.
I have tested it several times now. If virus scanning is on then no emails come through if it is off then they do come through.

We have SME server acting as our email server and emails to "at apdesign" go straight to our server.
I also have a personal email account I download via Pop3 from a local ISP. The emails pulled down from the local ISP
( xxxxx at paradise.net.nz ) come through ok virus scanning off or on, but it is the direct emails that just bouce.
I think the terms are emails sent to our DX record ??

I haven't logged a bug yet. I'm trying to load "smeserver-qpsmtp-1.2.1-57.e14.sme.noarch.rpm" as per the recommendation from bug report 4623. However I'm struggling to follow the commands given at present which was
"wget http://distro.ibiblo.org/pub/linux/distributions/smeserver/release/ yum localinstall smeserver-qpsmtp-1.2.1-57.e14.sme.noarch.rpm " when i run this at command line it down loads the "index.html" file but not the rpm and then the rest fails.

Any help would be good as I don't even know if I am on the right track.

I have disabled ordb.net as per bug 4214 but that had no effect.

I will try you latest post now

Cheers
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on October 23, 2008, 04:38:04 AM

I tried rpm -e clamav clamav-db clamd

i got

error: "clamav-db" specifies multiple packages
error: "clamd" specifies multiple packages

I stopped there.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: janet on October 23, 2008, 04:43:06 AM
Allan Pritchard

Try them one at a time

rpm -e clamav
rpm -e clamav-db
rpm -e clamd

You may need to re-arrange the order, so that dependencies get uninstalled last


Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: janet on October 23, 2008, 04:44:07 AM
Allan Pritchard

Quote
...in the server-manager under "configuration" -> "email" -> "change e-mail reception settings" I turned off Virus Scanning.

OK that confirms it is most likely clamav related. I just wondered whether spam filtering ie RBL lists may have been the problem, as there were some recent issues with totally wrong lists stopping email. This seems related to the issue of bug 4623.


In your case though, it would seem that some clamav and/or dependency rpms are not installed and this is causing your problem. See my previous suggestion.

I don't think downloading the newer smeserver-qpsmtp will solve your issue.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: CharlieBrady on October 23, 2008, 04:51:38 AM
Try them one at a time

rpm -e clamav
rpm -e clamav-db
rpm -e clamd

You may need to re-arrange the order, so that dependencies get uninstalled last

No, that won't help. OP must have had an interrupted update, which is why he has multiple copies of clamd installed and multipled copies of clamav-db.

To uninstall all versions of both, do:

sv d /service/clamd
rpm -e --nodeps $(rpm -q clamd clamav-db)

Then:

yum install clamav clamd clamav-db
signal-event post-upgrade ; signal-event reboot

Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: janet on October 23, 2008, 04:51:55 AM
Allan Pritchard

If you want to do it, this would be better
Code: [Select]
cd /tmp
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smeupdates-testing/i386/RPMS/smeserver-qpsmtpd-2.0.0-1.el4.sme.noarch.rpm
yum localinstall smeserver-qpsmtpd-2.0.0-1.el4.sme.noarch.rpm
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: janet on October 23, 2008, 04:55:31 AM
CharlieBrady

Quote
error: "clamav-db" specifies multiple packages
error: "clamd" specifies multiple packages

Quote
No, that won't help. OP must have had an interrupted update, which is why he has multiple copies of clamd installed and multipled copies of clamav-db.

OK, thanks Charlie, now I understand the significance of the multiple packages comment and why rpm -e xxx xxx xxx didn't work


Allan, follow Charlies better advice
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on October 23, 2008, 04:58:30 AM
Hi Mary
This is the error I got below. Took ages to type.
I'll follow charlie's post.

rpm -e clamav returns a large error

libclamav.so.4 is need by (installed) clamd-0.93-2.el4.rf.i386
libclamav.so.4(clamav_private) is need by (installed) clamd-0.93-2.el4.rf.i386
libclamav.so.4(clamav_public) is need by (installed) clamd-0.93-2.el4.rf.i386
clamav=0.93-2.el4.rf is needed by (installed) clamd-0.93-2.el4.rf.i386
clamav<=0.93 is needed by installed smeserver-clamav-1.2.0-21.el4.sme.noarch
clamav=0.94-1.el4.rf is needed by installed clamd-0.94-1.elf.rf.i386

rpm -e clamd

error: "clamd" specifies multiple packages

rpm -e clam-db

error: "clamav-db" specifies multiple packages
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: CharlieBrady on October 23, 2008, 05:01:49 AM
If you want to do it, this would be better ...

That shouldn't be necessary, as that bug says the package there has been released. So simply "yum update" should get it.

In any case, "rpm -Uhv http://path/to/repo/smeserver-qpsmtpd-2.0.0-1.el4.sme.noarch.rpm" will install the package in one go.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on October 23, 2008, 06:02:30 AM

Charlie's post worked. I have reset Virus checking and emails come through fine.


Thanks for all of your help, its very much appreciated.

I've gained a little more knowledge - its much easier designing houses  :).

Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: janet on October 23, 2008, 08:09:43 AM
Allan Pritchard

Quote
This is the error I got below. Took ages to type.

You should install the remote access ssh program called putty.exe on your windows workstation. Search Internet for free download.
Then access the sme server using that (in server manager first enable ssh access via passwords or key for local access as appropriate/required).

When you have a (DOS looking) window open in Putty, you can right click on the little logo/icon in the top left corner and simply copy the contents of the screen output (ie the error message & previous commands etc) into the Windows clipboard.
Then transfer to your Windows based email client, browser or whatever and paste the contents.

Saves typing it all manually, at the risk of making an error while transcribing it too.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on October 23, 2008, 10:06:43 AM
Thanks Mary

I've heard of people talking about putty on forums, I'll install it asap. I have found there seems is a gap between novices like me and people who know quite a bit about general linux. I'm learning heaps but sometimes simple things take hours trying to find out commands and syntax. And of course embarrasing moments like having to have employees read out error messages from the server to type them in.  :lol: I'm always nervous about wasting peoples time with dumb questions. So far I have found people to be really helpful on this forum and don't mind explaining things. It is really appreciated.

take care
Allan
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: janet on October 23, 2008, 10:34:46 AM
Allan Pritchard

Most of us came from the same place you are coming from.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: CharlieBrady on October 24, 2008, 03:32:40 PM
I've gained a little more knowledge - its much easier designing houses  :).

Not for me :-)
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on December 13, 2008, 01:08:09 AM
Hello All

I am tacking this on to my old post as it follows on from the help all ready received.

My SME 7.4beta2 has been running smoothly however every day I get a list of updates available, even if I update the list never changes. Having searched through the forums I have found using /sbin/e-smith/audittools/newrpms that I have 3 pages worth of installed packages. Two of which are


smeserver-release.noarch                 26:7.4-0.beta2.el4.sme installed
smeserver-release.noarch                 26:7.3-1.el4.sme       installed

doing a yum list I find that I have all of the updates installed, one of which is below but it still keeps saying I need to install updates

smeserver-release.noarch                 26:7.4-1.el4.sme       smeos


As this is our production server I don't want to go and do something dumb which may bring everything to a crashing halt. I am guessing that the installed packages were created when I accidently upgraded to a beta release and also that packages in "newrpms" take president over the other ones in the yum list.

My question is am I on the right track and will deleting the installed packages from the "newrpms" revert my server back to a vanilla SME 7.4 system.


Your advice would be much appreciated.

Regards
Allan Pritchard
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: janet on December 13, 2008, 10:03:48 AM
Allan Pritchard

Have you done what was advised in reply #3 of this thread ie set repos to the correct sme defaults only
see
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Which_repositories_should_be_enabled

Also Charlies post in this thread here
http://forums.contribs.org/index.php/topic,42410.msg199685.html#msg199685

suggests you have had interrupted installs, so you may need to apply the same concepts to uninstall these
smeserver-release.noarch                 26:7.4-0.beta2.el4.sme installed
smeserver-release.noarch                 26:7.3-1.el4.sme       installed


You should then do

yum clean all
then do
yum update
signal-event post-upgrade
signal-event reboot

see
http://wiki.contribs.org/SME_Server:Documentation:FAQ#General

Hopefully that will upgrade your beta release to the final 7.4 release, otherwise just download the sme 7.4 iso, burn a CD and do an upgrade install from CD.

As you are already running a beta release on your production server, then I wouldn't be too worried about what version you now update to, as it can only be an improvement.
As always, do a backup first to be safe.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on December 14, 2008, 04:25:25 AM
Thanks Mary

Yes I did what was advised in post #3

I will try the same approach to upgrade the various components starting with smeserver-release.noarch

I have set up a clean test server with SME 7.4 and have compiled a list of the default yum packages. I'll see where mine differs.

Thanks again
Allan
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: cactus on December 14, 2008, 09:55:12 AM
I have set up a clean test server with SME 7.4 and have compiled a list of the default yum packages. I'll see where mine differs.
I do not think that would have been neccesarry as you could have used the audittools:
Code: [Select]
/sbin/e-smith/audittools/newrpmsAbove should give you a list of all packages that are not available in the repositories that should be enabled by default as listed here: http://wiki.contribs.org/SME_Server:Documentation:FAQ#Which_repositories_should_be_enabled .
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on December 14, 2008, 09:32:07 PM
Sorry you miss understood me I set up a server so I could get the following list (only part list as an example)
 

DCC.i386                                 1.3.90-22.el4          installed
FuzzyOcr.noarch                          3.5.1-3.el4.sme        installed
LPRng.i386                               3.8.32-2.el4.sme       installed
MAKEDEV.i386                             3.15.2-3               installed
SysVinit.i386                            2.85-34.4              installed
acpid.i386                               1.0.3-2                installed
anacron.i386                             2.3-32                 installed
apmd.i386                                1:3.0.2-24             installed
apr.i386                                 0.9.4-24.9             installed
apr-util.i386                            0.9.4-22.el4           installed
aspell.i386                              12:0.60.3-7.1.el4.sme  installed
aspell-bg.i386                           50:0.50-11.2.2.el4.sme installed
aspell-da.i386                           50:0.50-12.2.2.el4.sme installed
aspell-de.i386                           50:0.50-11.2.2.el4.sme installed
aspell-el.i386                           50:0.50-4.2.2.el4.sme  installed
aspell-en.i386                           50:6.0-2.1.el4.sme     installed
aspell-es.i386                           50:0.50-13.2.2.el4.sme installed
 
My production server seems to have a mixture of versions of the above "packages" I'm not sure of the correct term. Some have updated but others refuse to update and every day I get the same email saying there are updates for my server.

Below is the fist few off my production server

DCC.i386                                 1.3.90-22.el4          installed
DCC.i386                                 1.3.66-21.el4          installed
FuzzyOcr.noarch                          3.5.1-3.el4.sme        installed
LPRng.i386                               3.8.32-2.el4.sme       installed
MAKEDEV.i386                             3.15.2-3               installed
SysVinit.i386                            2.85-34.4              installed
acpid.i386                               1.0.3-2                installed
anacron.i386                             2.3-32                 installed
apmd.i386                                1:3.0.2-24             installed
apr.i386                                 0.9.4-24.9             installed
apr-util.i386                            0.9.4-22.el4           installed
aspell.i386                              12:0.60.3-7.1.el4.sme  installed
aspell-bg.i386                           50:0.50-11.2.2.el4.sme installed
aspell-da.i386                           50:0.50-12.2.2.el4.sme installed
 
For example I have two versions of DCC.i386  on my production server, there are quite a few like this scattered through the list. Being a newbie I am unsure what should and shouldn't be there and what the consequences are of removing it.

I did notice that using /sbin/e-smith/audittools/newrpms on the new server there appares to be none listed but in pruduction server there is over 100 "newrpms" is that correct?

Confirming I have

CentOS-os
CentOS-updates
SME Server - addons
SME Server - os
SME Server - Updates

all enabled.
 
I'll use Charlies post to try and remove and update things manually. I'm hoping that one is causing the conflict and once removed the update process will work smoothly doing the rest.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: cactus on December 14, 2008, 10:11:30 PM
Sorry you miss understood me I set up a server so I could get the following list (only part list as an example)
No, I did not. You misunderstood me. You did not need to setup a copy to diagnose what additional packages are installed as the script I pointed you to compares what RPMs are on your system to what is current in the repositories (the latest released status of the version your repositories are pointing to). So if you have installed and configured the advised repositories only it should report you what files are newer/unknown.
Title: Re: accidental upgrade to beta version - clamav stopping incomming emails
Post by: Allan Pritchard on December 14, 2008, 11:26:18 PM
Sorry I didn't quite understand, I thought you were pointing me to the page showing what repositories should be enabled. Reading further down the page I understand now and think can follow that.

Thanks for your help

Cheers
Allan