Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - DNA

Pages: [1] 2
1
Postfix / Spam Filtering by Subject Line
« on: March 06, 2022, 10:49:19 AM »
Spammers are so intelligent and They are sending Spam with the following subject line :

your Dropbox has stopped syncing
Income Tax return 2021 issued
Please Check Your Identity Immediately
suspended incoming messages
Your Password is about to expire
Account Suspension Notice
Shipment has been completed
Advertise up to 200 MILLION EMAILS

If we block above subject by REJECT command , Spammer will get notification, Sometimes spammers has no return valid path . So we will DISCARD those email by the following settings :


Code: [Select]
# vi /etc/postfix/header_checks

/Bitcoin/                                                                    DISCARD
/Dropbox has stopped syncing/                          DISCARD
/Wetgeving/                                                               DISCARD
/Income Tax return 2021 issued/                                  DISCARD
/PSD2/                                                                         DISCARD
/Please Check Your Identity Immediately/                        DISCARD
/suspended incoming messages/                                     DISCARD
/Your Password is about to expire/                                  DISCARD
/Bescherm uw account/                                                  DISCARD
/Account Suspension Notice/                                          DISCARD
/Shipment has been completed/                                     DISCARD
/Advertise up to 200 MILLION EMAILS/                            DISCARD
/To:.*<>/                                                                     DISCARD
/From:.*<>/                                                                DISCARD
/^Subject:/                                                                 WARN
 

Code: [Select]
# postmap /etc/postfix/header_checks
# systemctl restart postfix

2
MySQL / PHPmyAdmin at risk
« on: February 11, 2022, 02:02:37 PM »
Hi

I am providing share hosting using CWPPro. I have more that 100 users .
Recently I have create a user called labiba for 2GB hosting . When login to phpmyadmin using username and password. The user can get access all database and user details. also that user can do anything .

Not only that all shared user can get access to all another user databases . Please fix the issues urgently

3
PHP Selector / PHP-FPM8.0 Update Failed
« on: November 05, 2021, 01:38:01 PM »
I am trying to update  PHP-FPM8.0 from version ( 8.0.7 ) to version ( 8.0.12 )  Update Failed

tail -f /var/log/php-selector-rebuild.log

Code: [Select]
Saving to: '/usr/local/src/php-dependencies.sh'

     0K .                                                     100%  111M=0s

2021-11-05 18:57:03 (111 MB/s) - '/usr/local/src/php-dependencies.sh' saved [1220/1220]

--2021-11-05 18:57:59--  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Resolving ftp.pcre.org (ftp.pcre.org)... 131.111.8.88
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... failed: Connection timed out.
Retrying.

--2021-11-05 19:00:08--  (try: 2)  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... failed: Connection timed out.
Retrying.

--2021-11-05 19:02:17--  (try: 3)  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... failed: Connection timed out.
Retrying.

--2021-11-05 19:04:27--  (try: 4)  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... failed: Connection timed out.
Retrying.

--2021-11-05 19:06:38--  (try: 5)  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... failed: Connection timed out.
Retrying.

--2021-11-05 19:08:51--  (try: 6)  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... failed: Connection timed out.
Retrying.

--2021-11-05 19:11:04--  (try: 7)  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... failed: Connection timed out.
Retrying.

--2021-11-05 19:13:18--  (try: 8)  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... failed: Connection timed out.
Retrying.

--2021-11-05 19:15:33--  (try: 9)  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
Connecting to ftp.pcre.org (ftp.pcre.org)|131.111.8.88|:443... failed: Connection timed out.
Retrying.


what should be the next procedure ?

4
E-Mail / CWP Email Compromised & SPAM Filtering
« on: August 06, 2021, 02:09:28 PM »
Dear CWP7.Pro Users

In this Pandemic I lost all my clients due to email hacked & mail account compromised . Most of them are sending mail from Website using Script including system mail flooding .

This month I build MailScanner with Mailwatch with my CWP7.Pro system which is perfectly working and getting protection via email with bad file extension including virus affected file .

I need vote to develop this for CWP , and Also If you suggest to CWP team , Then I will publish MailScanner & Mailwatch Setup for CWP Panel.

Details:
https://mailwatch.org/
https://www.mailscanner.info/


Thanks
DNA

5
PHP / PHP Version Switcher Deployment Error on CWP.Pro
« on: September 21, 2020, 01:52:37 PM »
I am using CWP.Pro and want update from php 5.6.37 to 7.3.22 using PHP Version Switcher v2 . I have checked the log and found the below error:

Code: [Select]
'ioncube_loader_lin_7.1.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.1.so'
'ioncube_loader_lin_7.1_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.1_ts.so'
'ioncube_loader_lin_7.2.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.2.so'
'ioncube_loader_lin_7.2_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.2_ts.so'
'ioncube_loader_lin_7.3.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.3.so'
'ioncube_loader_lin_7.3_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.3_ts.so'
'ioncube_loader_lin_7.4.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.4.so'
'ioncube_loader_lin_7.4_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.4_ts.so'
'loader-wizard.php' -> '/usr/local/ioncube/loader-wizard.php'
yes: standard output: Broken pipe
yes: write error

Code: [Select]
# php -v
Failed loading /usr/local/ioncube/ioncube_loader_lin_7.3.so:  /usr/local/ioncube/ioncube_loader_lin_7.3.so: undefined symbol: zend_ce_cou
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcached.so' - /usr/lt open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/redis.so' - /usr/localhared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so' - /usr/loca shared object file: No such file or directory in Unknown on line 0
PHP 5.6.37 (cli) (built: Jul 20 2018 06:10:33)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies


Code: [Select]
Notice: Undefined variable: ;%( \'!@(1'[&2 in /usr/local/cwpsrv/htdocs/resources/admin/modules/php_switch_v2.php on line 0
any idea ?
It is newly deployed VPS , CWPpro version: 0.9.8.1008

6
MySQL / DB Connection error
« on: September 15, 2020, 06:33:16 AM »
Hello

I am using WordPress Kuteshop Theme on Nginx+Apche+PHP-CGI (7.3 Latest) ,

Where my VPS Details :
1 CPU
1 GB RAM
25 GB SSD

But The issue is that I am getting error on Fronted

error establishing a database connection

Error Log:
Code: [Select]
# tail -f /usr/local/apache/domlogs/biponialoy.com.error.log
[Tue Sep 15 11:25:52.211453 2020] [:error] [pid 32464:tid 139915227748096] [client 103.134.42.11:48084] PHP Warning:  mysqli_query(): Error reading result set's header in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/
[Tue Sep 15 11:25:52.209797 2020] [:error] [pid 32464:tid 139915010443008] [client 103.134.42.11:48072] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/wp-admin/post.php?post=7311&action=edit
[Tue Sep 15 11:25:52.212245 2020] [:error] [pid 32464:tid 139915010443008] [client 103.134.42.11:48072] PHP Warning:  mysqli_query(): Error reading result set's header in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/wp-admin/post.php?post=7311&action=edit
[Tue Sep 15 11:25:52.209807 2020] [:error] [pid 32464:tid 139915261318912] [client 103.134.42.11:48064] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/wp-admin/post.php?post=7311&action=edit
[Tue Sep 15 11:25:52.212366 2020] [:error] [pid 32464:tid 139915261318912] [client 103.134.42.11:48064] PHP Warning:  mysqli_query(): Error reading result set's header in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/wp-admin/post.php?post=7311&action=edit
[Tue Sep 15 11:25:52.209802 2020] [:error] [pid 32464:tid 139915035621120] [client 103.134.42.11:48080] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/wp-admin/post.php?post=7311&action=edit
[Tue Sep 15 11:25:52.212425 2020] [:error] [pid 32464:tid 139915035621120] [client 103.134.42.11:48080] PHP Warning:  mysqli_query(): Error reading result set's header in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/wp-admin/post.php?post=7311&action=edit
[Tue Sep 15 11:25:52.209811 2020] [:error] [pid 32464:tid 139915069191936] [client 103.134.42.11:48076] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/wp-admin/post.php?post=7311&action=edit
[Tue Sep 15 11:25:52.212867 2020] [:error] [pid 32464:tid 139915069191936] [client 103.134.42.11:48076] PHP Warning:  mysqli_query(): Error reading result set's header in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/wp-admin/post.php?post=7311&action=edit
[Tue Sep 15 11:25:52.215043 2020] [:error] [pid 32464:tid 139914993657600] [client 103.134.42.11:48060] PHP Warning:  Error while sending QUERY packet. PID=3806 in /home/paikari/biponialoy.com/wp-includes/wp-db.php on line 2033, referer: https://www.biponialoy.com/wp-admin/post.php?post=7311&action=edit

No huge traffic / visitors .

Any idea ?

7
CSF Firewall / How to DIsable this Alert?
« on: September 13, 2020, 04:04:04 AM »
Hello Community Support Team,

I am getting below flooding message from CSF & LFD

Code: [Select]
lfd on mail.domain.com: Excessive resource usage: deeponsale (18766 (Parent PID:11293))

Time:         Sat Sep 12 23:39:27 2020 +0000
Account:      deeponsale
Resource:     Virtual Memory Size
Exceeded:     645 > 512 (MB)
Executable:   /usr/sbin/php-fpm7.2
Command Line: php-fpm: pool deeponsale.com                                               
PID:          18766 (Parent PID:11293)
Killed:       No



I just define the below code to stop receiving alert .

Code: [Select]
# vi /etc/csf/csf.pignore

exe:/usr/sbin/php-fpm7.2
exe:/usr/sbin/php-fpm7.2 php-fpm: pool deeponsale.com
user:deeponsale
cmd:php-fpm: php-fpm: pool deeponsale.com

# csf -r



I don't want to receive any alert like above example . Please assist .


Thanks

8
Dovecot / Dovecot SNI Support
« on: August 28, 2020, 10:04:52 AM »
Hello

Why The Postfix and dovecot SNI support stooped by CWP ? OR is it Bug for new version ?

/etc/postfix/vmail_ssl.map
/etc/dovecot/sni.conf

I am using CWP Pro

9
Updates / BUG on CWP version: 0.9.8.1002
« on: August 19, 2020, 06:28:05 PM »
Hi EveryBody

I am using CWP Open Source.

Web Server Below:
I have installed Nginx & Varnish & Apache. When i select Nginx & Varnish & Apache for any domain , It is not working . I have checked that varnish is not installed .

Dear CWP Team,
Are you removing this option from open source edition ?


Or is this bug ?





10
CentOS 7 Problems / PHP-CGI Killing Server Resources | CWP
« on: July 10, 2020, 01:43:32 PM »
Hi

I am using CWP7.Admin , WebServer : Nginx + Apache + PHP-CGI , Php version: 7.3
My Website is on laravel . visitor 100 per day . It's killing my resources and server Load average is very high . Please check snapshop and any idea to fix .

It was smoothly running on Cpanel VPS with 1GB RAM. After transfer to CWP , it's can handle PHP request .


11
PHP / CWP7.Pro Error | Unable to Login Admin Panel
« on: April 26, 2020, 09:08:35 AM »
Hi

I am using Nginx+Varnish+aPache +PHP-FPM , It was running smoothly .
PHP and PHP-FPM version 7.2.29 , Now issues that Unable to Login Admin Panel , getting HTTP ERROR 500
Found below the error log:

Code: [Select]
# tail /usr/local/cwpsrv/logs/error_log
Code: [Select]
2020/04/26 14:50:56 [error] 2510#0: *12 FastCGI sent in stderr: "PHP message: PHP Fatal error:  The file /usr/local/cwpsrv/htdocs/admin/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 or later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknown on line 0" while reading response header from upstream, client: 103.118.76.49, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "alpha.glorency.com:2031"

Code: [Select]
# tail /usr/local/cwp/php71/var/log/php-fpm.log
Code: [Select]
[26-Apr-2020 14:58:53] WARNING: [pool cwpsrv] child 6406 said into stderr: "NOTICE: PHP message: PHP Fatal error:  The file /usr/local/cwpsrv/htdocs/admin/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 or later."
[26-Apr-2020 14:58:53] WARNING: [pool cwpsrv] child 6406 said into stderr: " Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknown on line 0"

Code: [Select]
# vi /usr/local/cwp/php71/php.ini
; Local Variables:
; tab-width: 4
; End:
zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.2.so



12
In order for SpamAssassin to be accurate, you must train it on your specific mail patterns. SpamAssassin has a Bayesian classifier that can be used to help refine the classification of spam mail. The sa-learn interface allows you to train SpamAssassin to recognize good mail and junk mail. You need to train with both spam and ham mails. One type of mail alone will not have any effect.

To filter for spam:
  • Save spam into a new mail folder called Spam
  • Save non-spam (ham) into a new folder called Ham. You may also put messages that were marked as spam by mistake into this folder.
If you're having trouble with Bayes, see BayesFaq for help.
https://cwiki.apache.org/confluence/display/SPAMASSASSIN/BayesFaq

Spamassassin Default configuration:
Code: [Select]
# vi /etc/mail/spamassassin/local.cf
required_hits 5
report_safe 0
#required_score 5
rewrite_header Subject [SPAM]

Explanation:
Required_hits 5 is for small mail serv. You can increase it more if you need
Report_safe is on 0 here, but you can change to 1 or 2 ( see spamassassin guides )
Rewrite_header we call it ***SPAM*** here, you can call it as you want
Required_score can set form 0 -> 5 depends what you need

Configure the Bayesian classifier in Spamassassin:
Code: [Select]
# vi /etc/mail/spamassassin/local.cf
 use_bayes 1
 use_bayes_rules 1
 bayes_auto_learn 1
 bayes_path /etc/mail/spamassassin/bayes/
 bayes_file_mode 0660

 bayes_ignore_header X-Bogosity
 bayes_ignore_header X-Spam-Flag
 bayes_ignore_header X-Spam-Status
 include /usr/share/spamassassin/


Restart & Update Spamassassin rules
Code: [Select]
# systemctl restart spamassassin
# sa-update
Check Spamassassin status
Code: [Select]
# systemctl status spamassassin


If you get the above error that marked in snapshot , just disable the line (bayes_path) in /etc/mail/spamassassin/local.cf , It will use the default bayes_path .
Code: [Select]
#bayes_path /etc/mail/spamassassin/bayes/Just create new bayes databases
Code: [Select]
# sa-learn --sync
# sa-learn -p /etc/mail/spamassassin/local.conf --sync

Copy the existing bayes databases to Spamassassin Bayes directory:
Code: [Select]
# cp /root/.spamassassin/bayes_* /etc/mail/spamassassin/bayes/
Details with Troubleshooting :
How to Integrate Bayesian classifier in Spamassassin on CentOS Web Panel?

13
Vipul's Razor is a distributed, collaborative, spam detection and filtering network. The primary focus of the system is to identify and disable an email spam before its injection and processing is complete.

Open the following port in your firewall:
TCP 2703 Outgoing : Razor2

Razor Installation
Code: [Select]
# yum install pyzor perl-Razor-Agent
Create Razor Home Directory
Code: [Select]
# mkdir /etc/mail/spamassassin/.razor
Enable the Pyzor plugin
Code: [Select]
# vi /etc/mail/spamassassin/v310.pre
# Razor2 - perform Razor2 message checks.
#
loadplugin Mail::SpamAssassin::Plugin::Razor2

Add the following to /etc/mail/spamassassin/local.cf
Code: [Select]
# razor
use_razor2 1
razor_config /etc/mail/spamassassin/.razor/razor-agent.conf
score RAZOR2_CHECK 3.000

Restart
Code: [Select]
# systemctl restart spamassassin
Discover the Razor
Code: [Select]
# razor-admin -home=/etc/mail/spamassassin/.razor -register
# razor-admin -home=/etc/mail/spamassassin/.razor -create
# razor-admin -home=/etc/mail/spamassassin/.razor -discover

Define Home Directory, Edit /etc/mail/spamassassin/.razor/razor-agent.conf
Code: [Select]
#
# Razor2 config file
#
# Autogenerated by Razor-Agents v2.84
# Sat Feb 29 22:19:37 2020
# Non-default values taken from /etc/mail/spamassassin/.razor/razor-agent.conf
#
# see razor-agent.conf(5) man page
#

debuglevel             = 3
identity               = identity
ignorelist             = 0
listfile_catalogue     = servers.catalogue.lst
listfile_discovery     = servers.discovery.lst
listfile_nomination    = servers.nomination.lst
logfile                = razor-agent.log
logic_method           = 4
min_cf                 = ac
razordiscovery         = discovery.razor.cloudmark.com
razorhome              = /etc/mail/spamassassin/.razor
rediscovery_wait       = 172800
report_headers         = 1
turn_off_discovery     = 0
use_engines            = 4,8
whitelist              = razor-whitelist

Test
Code: [Select]
# spamassassin -t -D razor2 < /usr/share/doc/spamassassin-3.4.0/sample-spam.txt

Check the packages
Code: [Select]
# rpm -qa | grep Razor
# rpm -qa | grep pyzor
# rpm -qa | grep DCC


14
Pyzor is a collaborative, networked system to detect and block spam using digests of messages.Using Pyzor client a short digest is generated that is likely to uniquely identify the email message. This digest is thensent to a Pyzor server to:
  • check the number of times it has been reported as spam or whitelisted as not-spam
  • report the message as spam
  • whitelist the message as not-spam
Since the entire system is released under the GPL, people are free to host their own independent servers. There is,however, a well-maintained and actively used public server available (courtesy of SpamExperts) at:
Code: [Select]
public.pyzor.org:24441Open the following port in your firewall:
UDP 24441 Outgoing : Pyzor
TCP 24441 Incoming : Pyzor

Pyzor RPM Sources:
1. ftp://mirror.switch.ch/pool/4/mirror/fedora/linux/releases/22/Everything/x86_64/os/Packages/p/pyzor-0.5.0-10.fc21.noarch.rpm [This will not work ]
2. http://209.132.181.8/pub/archive/fedora/linux/releases/22/Everything/x86_64/os/Packages/p/pyzor-0.5.0-10.fc21.noarch.rpm [ Use This ]

Pyzor Installation
Code: [Select]
# rpm -Uvh http://209.132.181.8/pub/archive/fedora/linux/releases/22/Everything/x86_64/os/Packages/p/pyzor-0.5.0-10.fc21.noarch.rpm
Enable the Pyzor plugin
Code: [Select]
# vi /etc/mail/spamassassin/v310.pre
# Pyzor - perform Pyzor message checks.
#
loadplugin Mail::SpamAssassin::Plugin::Pyzor

Add the following to /etc/mail/spamassassin/local.cf
Code: [Select]
# pyzor
use_pyzor 1
pyzor_options --homedir /etc/mail/spamassassin/.pyzor
pyzor_path /usr/bin/pyzor
score PYZOR_CHECK 3.000

Discover the Pyzor Home Directory
Code: [Select]
# pyzor --homedir /etc/mail/spamassassin/.pyzor discover
  downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x

Restart
Code: [Select]
# systemctl restart spamassassinTest
Code: [Select]
# spamassassin -t -D pyzor < /usr/share/doc/spamassassin-3.4.0/sample-spam.txt


Original Article : https://www.awsmonster.com/2020/03/how-to-install-pyzor-on-centos-web.html

15
Please do not try to use the ancient, modified versions of DCC software distributed by some Linux packagers. Those versions do not detect bulk mail as well as more recent versions. Installations using those old versions also have problems using the public DCC servers that often make it necessary to add their IP addresses to the blacklist that protects the public DCC servers.

The DCC source is available at dcc-servers.net and Rhyolite Software. The license on the free source is in the source as well as dcc-servers.net. The free license is intended to cover individuals and organizations including Internet service providers using DCC to filter their own mail. Organizations selling anti-spam appliances or managed mail services are not eligible for the free license.
https://www.dcc-servers.net/dcc/FAQ.html

Distributed Checksum Clearinghouse (DCC) Installation:
Open UDP_OUT port 6277 in firewall.


DCC RPM Sources:
1. https://www.mirrorservice.org/sites/dl.atrpms.net/el7-x86_64/atrpms/stable/DCC-1.3.145-25.el7.x86_64.rpm  [This will not work ]
2. https://rpmfind.net/linux/atrpms/sl7-x86_64/atrpms/stable/DCC-1.3.145-25.el7.x86_64.rpm [ Use This ]

DCC Installation:
Code: [Select]
# yum install sendmail-milter ( already installed )
# rpm -Uvh https://rpmfind.net/linux/atrpms/sl7-x86_64/atrpms/stable/DCC-1.3.145-25.el7.x86_64.rpm
# rpm -qa | grep DCC

If DCC Installation Failed
Code: [Select]
# yum groupinstall 'Development Tools'
Enable the DCC plugin
Code: [Select]
# vi /etc/mail/spamassassin/v310.pre
 # DCC - perform DCC message checks.
 #
 # DCC is disabled here because it is not open source.  See the DCC
 # license for more details.
 #
 loadplugin Mail::SpamAssassin::Plugin::DCC


Add the following to /etc/mail/spamassassin/local.cf
Code: [Select]
# dcc
use_dcc 1
dcc_home /var/dcc
dcc_path /usr/local/bin/dccproc
dcc_timeout     10
add_header all  DCC _DCCB_: _DCCR_
score DCC_CHECK 4.000

N.B:Some of them using dcc_home /etc/dcc
Other Location: /usr/libexec/dcc

Copy the below Command
Code: [Select]
# cp /usr/bin/dccproc /usr/local/bin/dccproc
# cp /usr/bin/cdcc /usr/local/bin/

Check
Code: [Select]
# find / -name cdcc
# which cdcc
Test
Code: [Select]
# cdcc info

Pages: [1] 2