• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Plesk 8.6.0 + Debian 4.0 + Spamassassin 3.1.7 + Clamav Configuration?

A

AlexisA

Guest
Hi All,

I currenly have an uptodate Plesk 8.6.0/Debian 4.0 installation. Spamassassin is working well. However I want to:

1) Upgrade spamassasin to 3.2.5 from 3.1.7 (which is the latest verion available via the plesk repo)

2) Delete/move all mail that has a spamassassin score of more than 15

3) Delete all emails that contain virus's using ClamAV

Having researeched this I cannot find any one who has managed to get these things working on Plesk 8.6.0 + Debian 4.0.

I was hoping Qmail-Scanner might work but am concerned it may have compatability issues with my setup? Has anyne got this working with my setup already?

Scott over @ atomicrocketturtle.com suggested that the easiest route would be to ditch Debian (not supported under Atomic Scanner) and install either CentOS, RHEL, or Fedora along with his very well known/respected Atomic Scanner which does all the clever configuration (and alot more) painlessly.

Before I go down the route of migrating all my websites over to a Atomic Scanner supported OS (which i am reluctant to do) I was hoping that I might be able to achieve the above using my current setup? Any advise would be very much appreciated.

Thanks,

Alexis
 
I have no idea if it will work on debian, but we use it without any problems on centos.

http://sageshome.net/oss/qclam.php

its very simple to use

- compile the program
- write a script that will add a line to the .qmail files. We use the cron for this, it checkes every hourt what .qmail files are missing it and add it, this is the script:

Code:
<?php

$findnames = "/usr/bin/find /var/qmail/mailnames/*.*/*/.qmail > /home/httpd/scripts/mailnames.txt";
system("$findnames");

$fh_mailnames = fopen ("/home/httpd/scripts/mailnames.txt", "r");

if (!$fh_mailnames) { exit; }
$i = 0;
while (!feof ($fh_mailnames)) {
	$mailnames[$i] = fgets($fh_mailnames, 1024);
	$i++;
}
fclose($fh_mailnames);

$qclamlijn = "| /usr/bin/qclam --temp /dev/shm --log /var/log/qclam.log\n";

for ($j=0; $j<count($mailnames)-1; $j++) {
	$mailnames_lijn = rtrim($mailnames[$j]);
	echo "checking: $mailnames_lijn\n";
  $qmailfile = file_get_contents("$mailnames_lijn");
  if ((ereg("qclam",$qmailfile))) {
  	echo "qclam already here\n";
  }	else {
   	echo "qclam added\n";
    $qmailfile = $qclamlijn . $qmailfile;
  	file_put_contents ("$mailnames_lijn","$qmailfile");
  }
	shell_exec("/bin/chown popuser.popuser $mailnames_lijn");
}

?>

sorry its php, i just dont like perl.

as for the spamassassin, you can configure that per mailbox.

Hopes this helps a bit
regards
Jan
 
Back
Top