How to config spamassassin on cwp

Started by muscator, February 09, 2016, 07:43:53 AM

Previous topic - Next topic

muscator

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....


Igor S.

Hello.

I'm afraid it can be configured manually only, at the time.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

muscator

.....and how is that done....?




Quote from: Igor S. on February 16, 2016, 08:00:32 AM
Hello.

I'm afraid it can be configured manually only, at the time.

Glenn

Have a look in /etc/mail/spamassassin/local.cf

tristar78

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/

yesyes

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?

yesyes

a-ha! it seems all the config is done in /etc/amavisd.conf

Igor S.

#7
Hello.

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

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:

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.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

tristar78

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





zakrpa

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..

Igor S.

Hello, tristar78.
Sure, you can upgrade it just like for any other CentOS.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services


Edson Marques


Igor S.




You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

groenie101

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?