Page 1 of 2

Plesk 9.2 Spam Settings

Posted: Fri Sep 25, 2009 2:43 am
by comstech
Is there anyway that I can setup spam is it is tagged as ***SPAM*** at score 5 and deliver (this is easy) but 5 and above delete.
I am guessing this would be a header type rule but can not work out how to add header rule scanning in to qmail

Thanks

Re: Plesk 9.2 Spam Settings

Posted: Fri Sep 25, 2009 3:31 am
by biggles
qmail-scanner is your friend. But that is of course if you use qmail as MTA...

Re: Plesk 9.2 Spam Settings

Posted: Fri Sep 25, 2009 3:40 am
by comstech
Am certainly using qmail, will this work ok with Plesk 9.2 and how to I install it and configure it?
Do I need to turn off spam and postgrey in plesk?

Sorry I am a newbie at managing my own server :)

Re: Plesk 9.2 Spam Settings

Posted: Fri Sep 25, 2009 4:02 am
by biggles
No problem at all! We have all been there (and still are there in some areas)!

What I usually do with a new Plesk server (regarding spam that is, there are severel other things to consider).

1. Remove psa-spamassassin (the plesk spamassassin) You will lose the functionality to handle spamassassin from within Plesk, but you gain so much more (for example the ability to use an updated spamassassin!)

2. Install spamassassin from ART repo.
1) Set up the archive:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh

2) Install spamassassin, and install Clamav, qmail-scanner, and SA support packages:

yum install spamassassin
yum install clamd qmail-scanner dcc pyzor razor-agents

3) Restart the services, and update the qmail-scanner config.
service spamassassin restart
service clamd start
qmail-scanner-reconfigure
3. Configure qmail-scanner with the qmail-scanner.ini file to do your deleting for you. Last time I checked the ini-file was inside /etc

There are probably some more things to do, but this will at least get you started!

Good Luck!

edit: Don't forget to run qmail-scanner-reconfigure after editing the qmail-scanner.ini file!!!

Re: Plesk 9.2 Spam Settings

Posted: Fri Sep 25, 2009 11:46 pm
by comstech
So I could rely remove and no longer have to pay for the
Plesk for Linux/Unix Power Pack *
A bundle of the SpamAssassin, Application Pack, Helpdesk, Tomcat, ColdFusion, and PostgreSQL Add-Ons.

As I do not use Helpdesk, tomcat or Coldfusion

Re: Plesk 9.2 Spam Settings

Posted: Sat Sep 26, 2009 9:44 am
by biggles
Yep, spend the money on ASL instead!

Re: Plesk 9.2 Spam Settings

Posted: Fri Oct 09, 2009 10:07 pm
by comstech
Sorry to ask such a silly question but to make this thread complete for newbies like me and so I know what to do.

How do I remove the psa-spamassain and the psa version of postgrey etc. And I guess I do this first then add in the new versions

Thanks

Re: Plesk 9.2 Spam Settings

Posted: Mon Oct 12, 2009 3:15 am
by biggles

Code: Select all

sudo yum remove psa-spamassassin 
and something similar for postfix.

Code: Select all

sudo yum search postfix
should help you find the name of the postfix-package.

Re: Plesk 9.2 Spam Settings

Posted: Tue Oct 13, 2009 3:00 am
by comstech
OK another question postgrey (greylisting is not mentioned here)
Is there an atomic version I can install and if so how?

Thanks

Re: Plesk 9.2 Spam Settings

Posted: Tue Oct 13, 2009 3:06 am
by comstech
I also get this error from freshclam
ClamAV update process started at Tue Oct 13 18:05:08 2009
main.cvd is up to date (version: 51, sigs: 545035, f-level: 42, builder: sven)
ERROR: chdir_tmp: Can't create directory ./clamav-86b25de0b6aa630fd9977b76b7919752
WARNING: Incremental update failed, trying to download daily.cvd
ERROR: getfile: Can't create new file /var/clamav/clamav-09822983a0662f0448ab8955efbbf564 in /var/clamav
Hint: The database directory must be writable for UID 112 or GID 103
WARNING: Can't download daily.cvd from db.au.clamav.net
does this mean I need to chmod 755 the /var/clamav directory?

Thanks

Re: Plesk 9.2 Spam Settings

Posted: Tue Oct 13, 2009 3:17 am
by comstech
This command failed
# qmail-scanner-reconfigure
-bash: qmail-scanner-reconfigure: command not found

Also where will I find docs on this so I can find the options for the .ini file and how to add the header info etc to emails

HELP HELP now the server will not accept mail
Oct 13 18:16:14 snoopy relaylock: /var/qmail/bin/relaylock: mail from 150.101.22.18:47655 (mail.fivepoint.com.au)
Oct 13 18:16:14 snoopy relaylock: /var/qmail/bin/relaylock: mail from 65.55.90.103:6438 (snt0-omc2-s28.snt0.hotmail.com)
Oct 13 18:16:18 snoopy relaylock: /var/qmail/bin/relaylock: mail from 117.55.225.25:41614 (naswell.com.au)
Oct 13 18:16:21 snoopy relaylock: /var/qmail/bin/relaylock: mail from 221.133.201.173:60070 (melemlemu02.empoweredcomms.com.au)
Oct 13 18:16:22 snoopy relaylock: /var/qmail/bin/relaylock: mail from 221.133.201.169:50482 (melemlemu03.empoweredcomms.com.au)
Oct 13 18:16:23 snoopy relaylock: /var/qmail/bin/relaylock: mail from 89.123.48.34:39311 (not defined)

Re: Plesk 9.2 Spam Settings

Posted: Tue Oct 13, 2009 9:04 am
by scott
what version of qmail-scanner are you running? You can check with rpm -q qmail-scanner

Re: Plesk 9.2 Spam Settings

Posted: Tue Oct 13, 2009 9:08 am
by biggles
comstech wrote:OK another question postgrey (greylisting is not mentioned here)
Is there an atomic version I can install and if so how?

Thanks
http://atomicorp.com/forums/viewtopic.p ... t=greylist

Re: Plesk 9.2 Spam Settings

Posted: Tue Oct 13, 2009 9:29 am
by comstech
qmail-scanner-2.06-1.el5.art

Is the version, I am now totaly lost. I paid a tech to get email flowing again but it is not fully installed now and I have no idea on how to find out whats installed and whats working or not working :(

Re: Plesk 9.2 Spam Settings

Posted: Tue Oct 13, 2009 5:29 pm
by scott
I think I see whats going on, is that a plesk 9.2 system?