Plesk 9.2 Spam Settings

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
comstech
Forum User
Forum User
Posts: 11
Joined: Fri Sep 25, 2009 2:36 am

Plesk 9.2 Spam Settings

Unread post 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
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Plesk 9.2 Spam Settings

Unread post by biggles »

qmail-scanner is your friend. But that is of course if you use qmail as MTA...
comstech
Forum User
Forum User
Posts: 11
Joined: Fri Sep 25, 2009 2:36 am

Re: Plesk 9.2 Spam Settings

Unread post 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 :)
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Plesk 9.2 Spam Settings

Unread post 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!!!
comstech
Forum User
Forum User
Posts: 11
Joined: Fri Sep 25, 2009 2:36 am

Re: Plesk 9.2 Spam Settings

Unread post 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
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Plesk 9.2 Spam Settings

Unread post by biggles »

Yep, spend the money on ASL instead!
comstech
Forum User
Forum User
Posts: 11
Joined: Fri Sep 25, 2009 2:36 am

Re: Plesk 9.2 Spam Settings

Unread post 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
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Plesk 9.2 Spam Settings

Unread post 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.
comstech
Forum User
Forum User
Posts: 11
Joined: Fri Sep 25, 2009 2:36 am

Re: Plesk 9.2 Spam Settings

Unread post by comstech »

OK another question postgrey (greylisting is not mentioned here)
Is there an atomic version I can install and if so how?

Thanks
comstech
Forum User
Forum User
Posts: 11
Joined: Fri Sep 25, 2009 2:36 am

Re: Plesk 9.2 Spam Settings

Unread post 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
comstech
Forum User
Forum User
Posts: 11
Joined: Fri Sep 25, 2009 2:36 am

Re: Plesk 9.2 Spam Settings

Unread post 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)
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Plesk 9.2 Spam Settings

Unread post by scott »

what version of qmail-scanner are you running? You can check with rpm -q qmail-scanner
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Plesk 9.2 Spam Settings

Unread post 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
comstech
Forum User
Forum User
Posts: 11
Joined: Fri Sep 25, 2009 2:36 am

Re: Plesk 9.2 Spam Settings

Unread post 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 :(
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Plesk 9.2 Spam Settings

Unread post by scott »

I think I see whats going on, is that a plesk 9.2 system?
Post Reply