Control Web Panel

WebPanel => E-Mail => Topic started by: muscator on February 09, 2016, 07:43:53 AM

Title: How to config spamassassin on cwp
Post by: muscator on February 09, 2016, 07:43:53 AM
I have searched high and low to find a FAQ answering how to config Spamassassin on CWP...?

Itīs fine that Spamassassin is installed via Postfix manager together with Clamav etc. but Spamassassin is not worth much if it canīt be configured on user level and in CWP it is not possible to configure it neither on server level nor on userlevel...

So - simple quetion:

How to config spamassassin on cwp on serverlevel and userlevel....

Title: Re: How to config spamassassin on cwp
Post by: Igor S. on February 16, 2016, 08:00:32 AM
Hello.

I'm afraid it can be configured manually only, at the time.
Title: Re: How to config spamassassin on cwp
Post by: muscator on March 06, 2016, 11:28:49 AM
.....and how is that done....?




Hello.

I'm afraid it can be configured manually only, at the time.
Title: Re: How to config spamassassin on cwp
Post by: Glenn on May 26, 2016, 02:31:44 PM
Have a look in /etc/mail/spamassassin/local.cf
Title: Re: How to config spamassassin on cwp
Post by: tristar78 on June 29, 2016, 09:06:17 AM
Any tutorial would be good for on this issue.
I've searched & found some. But i didn't tested. Maybe someone make this.
https://www.rosehosting.com/blog/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps/
Title: Re: How to config spamassassin on cwp
Post by: yesyes on August 15, 2016, 09:52:38 AM
I'm also looking for information on how to configure SpamAssassin. The internet seems to have nothing on it.

I have installed it and it seems to work (with defaults) for my email account, but it does not scan my wife's email account that is on a different domain on the same server.

The file /etc/mail/spamassassin/local.cf does not seem to be the correct config file either. Any changes I make in there don't seem to have an effect (the tag added to the subject line of a spam email is different, for example). I did use "Restart all Mail Server Services" button on the Postfix manager page after making a change in that file.

Does anyone know what the correct config file for SpamAssassin is when it has been installed through the Postfix manager?
Title: Re: How to config spamassassin on cwp
Post by: yesyes on August 15, 2016, 02:15:18 PM
a-ha! it seems all the config is done in /etc/amavisd.conf
Title: Re: How to config spamassassin on cwp
Post by: Igor S. on August 21, 2016, 09:04:20 AM
Hello.

For spamassassin make sure you have next changes at Postfix configs.
/etc/postfix/master.cf

Code: [Select]
smtp      inet  n       -       n       -       -       smtpd
  -o content_filter=smtp-amavis:127.0.0.1:10024
  -o receive_override_options=no_address_mappings
  -o content_filter=spamassassin

spamassassin      unix -      n      n      -      -      pipe
  user=nobody argv=/usr/bin/spamc -f -e
  /usr/sbin/sendmail -oi -f ${sender} ${recipient}

and SA config:

Code: [Select]
SAHOME="/var/lib/spamassassin/"
SPAMDOPTIONS="-d -c -m5 -H --username nobody -s ${SAHOME}spamd.log"

make sure the /var/lib/spamassassin/ owner is nobody.

P.S. It will be added to some new version.
Title: Re: How to config spamassassin on cwp
Post by: tristar78 on August 21, 2016, 10:59:06 AM
hello Igor,

thanks for update this topic.
Our Cwp SA version is 3.3.1
is it Safe to upgrade latest version of SA on our cwp system?
Would you please guide us.

spamassassin -V
SpamAssassin version 3.3.1
  running on Perl version 5.10.1




Title: Re: How to config spamassassin on cwp
Post by: zakrpa on August 22, 2016, 08:06:22 PM
Used this tutorial and works fine for me.. Spamassassin and clamav...

https://wiki.gentoo.org/wiki/Complete_Virtual_Mail_Server/amvisd_spamassassin_clamav#Basic_Configuration

Please make backup before and read everything carefully..
 
Title: Re: How to config spamassassin on cwp
Post by: Igor S. on August 23, 2016, 10:09:55 AM
Hello, tristar78.
Sure, you can upgrade it just like for any other CentOS.
Title: Re: How to config spamassassin on cwp
Post by: hrace009 on August 25, 2016, 05:31:44 AM

and SA config:


where is SA config locate?
Title: Re: How to config spamassassin on cwp
Post by: Edson Marques on November 26, 2016, 02:42:53 PM
where is SA config locate?
Title: Re: How to config spamassassin on cwp
Post by: Igor S. on December 05, 2016, 10:53:08 AM
Hello,
check the /etc/mail/spamassassin/local.cf

where is SA config locate?
Title: Re: How to config spamassassin on cwp
Post by: groenie101 on May 14, 2019, 09:09:47 AM
Hi Guys i did this setup the same way as  above and the email goes to spam automatically on certain accounts only and one account it does not? why would that be?
Title: Re: How to config spamassassin on cwp
Post by: Franklacroix2 on June 12, 2019, 08:27:53 AM
I'm also looking for information on how to configure SpamAssassin. The internet seems to have nothing on it.

I have installed it and it seems to work (with defaults) for my email account, but it does not scan my wife's email account that is on a different domain on the same server.

The file /etc/mail/spamassassin/local.cf does not seem to be the correct config file either. Any changes I make in there don't seem to have an effect (the tag added to the subject line of a spam email is different, for example) paris car service (http://www.shuttle-paris-airports.com). I did use "Restart all Mail Server Services" button on the Postfix manager page after making a change in that file.

Does anyone know what the correct config file for SpamAssassin is when it has been installed through the Postfix manager?
It could be a temporary bug, but I'm sure we can still fix it with the right tools.