HOWTO: Install qmail-scanner, clamav and SA in FC5-Plesk 8.1

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
luribe
Forum User
Forum User
Posts: 10
Joined: Thu Dec 28, 2006 9:07 pm

HOWTO: Install qmail-scanner, clamav and SA in FC5-Plesk 8.1

Unread post by luribe »

Hi

I have Fedora Core 5 with Plesk 8.1, i want to install the essential: qmail-scanner, spamassassin and clamd in order
to get ride of spam.

In Plesk 7.5.4 was easy, but in 8.1 ... well.

First i try to install qmail-scanner but there is a problem with dependences:
[root@petunia base]# yum install qmail-scanner
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core [1/6]
core 100% |=========================| 1.1 kB 00:00
atomic [2/6]
atomic 100% |=========================| 951 B 00:00
atomic-app-vault [3/6]
atomic-app-vault 100% |=========================| 951 B 00:00
psa-8.1 [4/6]
psa-8.1 100% |=========================| 951 B 00:00
updates [5/6]
updates 100% |=========================| 1.2 kB 00:00
extras [6/6]
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for qmail-scanner to pack into transaction set.
qmail-scanner-2.01-12.rhf 100% |=========================| 70 kB 00:02
---> Package qmail-scanner.noarch 1:2.01-12.rhfc5.art set to be updated
--> Running transaction check
--> Processing Dependency: perl-suidperl for package: qmail-scanner
--> Processing Dependency: tnef for package: qmail-scanner
--> Processing Dependency: maildrop for package: qmail-scanner
--> Processing Dependency: daemontools >= 0.76 for package: qmail-scanner
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-suidperl to pack into transaction set.
perl-suidperl-5.8.8-5.i38 100% |=========================| 22 kB 00:01
---> Package perl-suidperl.i386 4:5.8.8-5 set to be updated
--> Running transaction check
--> Processing Dependency: tnef for package: qmail-scanner
--> Processing Dependency: maildrop for package: qmail-scanner
--> Processing Dependency: daemontools >= 0.76 for package: qmail-scanner
--> Finished Dependency Resolution
Error: Missing Dependency: tnef is needed by package qmail-scanner
Error: Missing Dependency: maildrop is needed by package qmail-scanner
Error: Missing Dependency: daemontools >= 0.76 is needed by package qmail-scanner
The problem is that tnef, maildrop or daemontools are NOT in the FC5 repository, so i need to download
the FC4 version and install them.
Then i install everything else
[root@petunia spamassassin]# yum install qmail-scanner clamav-db clamav clamd
[root@petunia spamassassin]# /etc/init.d/psa-spamassassin restart
[root@petunia spamassassin]# qmail-scanner-reconfigure
Reconfiguring spamassassin settings: Done
Reconfiguring clamav settings: Done
Configuring qmail-scanner: OK
[root@petunia spamassassin]#
And everything is ok.

TODO: Update the clamd and spamassassin databases

yum.conf:
[root@petunia ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=0
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

[atomic]
name=Atomic Rocket Turtle - $releasever - Atomic PSA-Compatible RPMS
baseurl=http://3es.atomicrocketturtle.com/atomi ... eleasever/

[atomic-app-vault]
name=Atomic Rocket Turtle - $releasever - Atomic PSA App Vault RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/app-vault/

[psa-8.1]
name=Atomic Rocket Turtle - $releasever - SW-Soft PSA 8.1 RPMS
baseurl=http://3es.atomicrocketturtle.com/atomi ... ora/5/i386
I hope this help someone else :)

Last edited by luribe on Tue Jan 09, 2007 3:11 pm, edited 1 time in total.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

The problem is that tnef, maildrop or daemontools are in the FC5 repository, so i need to download the FC4 version and install them.
Why?
Lemonbit Internet Dedicated Server Management
luribe
Forum User
Forum User
Posts: 10
Joined: Thu Dec 28, 2006 9:07 pm

Unread post by luribe »

breun wrote:
The problem is that tnef, maildrop or daemontools are in the FC5 repository, so i need to download the FC4 version and install them.
Why?
Hehe, sorry, the packages are NOT IN the repository.

My mistake.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

They seem to be there when I look at http://3es.atomicrocketturtle.com/atomic/art/5/RPMS/
Lemonbit Internet Dedicated Server Management
luribe
Forum User
Forum User
Posts: 10
Joined: Thu Dec 28, 2006 9:07 pm

Unread post by luribe »

Right, now they are, but look the date, its after i've post this message.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

You're right. Remember to notify Scott of problems like these though. Working around the problem by using the FC4 packages apparently worked, but it's always best to (also) have the problem fixed.
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

yeah, definitely let me know about this kind of thing directly. I didnt even notice that there werent any qmail builds for fc5 and 6.
luribe
Forum User
Forum User
Posts: 10
Joined: Thu Dec 28, 2006 9:07 pm

Unread post by luribe »

All right :)
luribe
Forum User
Forum User
Posts: 10
Joined: Thu Dec 28, 2006 9:07 pm

Unread post by luribe »

Ok, when i re-install without the FC4 rpms i have an error:
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package clamav-db.i386 0:0.88.7-1.rhfc5.art set to be updated
---> Package clamd.i386 0:0.88.7-1.rhfc5.art set to be updated
---> Package clamav.i386 0:0.88.7-1.rhfc5.art set to be updated
---> Package qmail-scanner.noarch 1:2.01-12.rhfc5.art set to be updated
--> Running transaction check
--> Processing Dependency: perl-suidperl for package: qmail-scanner
--> Processing Dependency: tnef for package: qmail-scanner
--> Processing Dependency: maildrop for package: qmail-scanner
--> Processing Dependency: daemontools >= 0.76 for package: qmail-scanner
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package tnef.i386 0:1.4.3-1.rhfc5.art set to be updated
---> Package daemontools.i386 0:0.76-1.rhfc5.art set to be updated
---> Package maildrop.i386 0:2.0.3-1.rhfc5.art set to be updated
---> Package perl-suidperl.i386 4:5.8.8-5 set to be updated
--> Running transaction check
--> Processing Dependency: libcourierauth.so.0 for package: maildrop
--> Finished Dependency Resolution
Error: Missing Dependency: libcourierauth.so.0 is needed by package maildrop
After a short search in google i think that courier-authlib is the package that provides libcourierauth.so.0, but i can't find it right now.

I'm gonna do more research :)
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

See http://atomicrocketturtle.com/forum/vie ... php?t=1376

Scott made a mistake when creating his maildrop update. :(
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Yeah thats an artifact of stuff from the atomic-bleeding channel being in the build tree. Once I clean that up, it's going to be one of the steps on bringing project-gamera and psa closer together with common qmail and courier packages.
albans
Forum User
Forum User
Posts: 59
Joined: Tue Mar 28, 2006 4:03 am

Unread post by albans »

Hey,

Thanks for your HowTo... But I tried it and I got this error in the maillog:
----------------------------------------------------------------------------------
X-Qmail-Scanner-2.01st: [domain.tld11688698277632499] clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2
----------------------------------------------------------------------------------
Do you have any idea on how to resolve it?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

yep, make sure clamd is running
albans
Forum User
Forum User
Posts: 59
Joined: Tue Mar 28, 2006 4:03 am

Unread post by albans »

Alright, that's a shame I didn't realized that it was not running... Thanks!

I also noted a strange error:
-----------------------------------------------------------------------------------
Jan 15 15:28:52 host spamd[4716]: locker: safe_lock: cannot create tmp lockfile /var/qmail/mailnames///.spamassassin/auto-whitelist.lock.domain.tld.4716 for /var/qmail/mailnames///.spamassassin/auto-whitelist.lock: No such file or directory
Jan 15 15:28:52 host spamd[4716]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /var/qmail/mailnames///.spamassassin/auto-whitelist.lock.domain.tld.4716 for /var/qmail/mailnames///.spamassassin/auto-whitelist.lock: No such file or directory
Jan 15 15:28:52 host spamd[4716]: Can't call method "finish" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Plugin/AWL.pm line 397, <GEN50> line 2178.
Jan 15 15:28:52 host spamd[4716]: bayes: locker: safe_lock: cannot create tmp lockfile /var/qmail/mailnames///.spamassassin/bayes.lock.domain.tld.4716 for /var/qmail/mailnames///.spamassassin/bayes.lock: No such file or directory
-----------------------------------------------------------------------------------

For this one: http://atomicrocketturtle.com/forum/viewtopic.php?t=496
Last edited by albans on Tue Jan 16, 2007 5:38 am, edited 1 time in total.
albans
Forum User
Forum User
Posts: 59
Joined: Tue Mar 28, 2006 4:03 am

Unread post by albans »

Hey, is there a way to deactivate the spamassassin executed by qmail-scanner?

As in the mail headers, I see "SA:0(-1.2/6.0)" next to the Clear:RC information... So it must be SpamAssassin score -1.2 on 6.
And then after:
-----------------------------------
X-Spam-Status: No, score=-4.0 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00, HTML_MESSAGE autolearn=ham version=3.1.0
-----------------------------------

So, two differnts scores for the same message... I would prefer Qmail-scanner just doing anti-virus checking.
Post Reply