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.


Messages - ppalma8

Pages: [1]
1
E-Mail / Re: How to configure Spamassassin [updated]
« on: March 08, 2026, 01:58:27 AM »

At file /etc/sysconfig/spamassassin edit to:

Code: [Select]

SAHOME="/var/lib/spamassassin/"
SPAMDOPTIONS="-c -m5 -u nobody -s ${SAHOME}spamd.log"


** Here we have a problem, with -d option (Detach from starting process and run in background) you will have spamd consuming a lot of load, even not working. This is mentioned at
https://forum.centos-webpanel.com/e-mail/spamassassin-service-failed-with-result-start-limit-hit/msg38072/#msg38072 . So we can remove it? As for me both options did not work I don't know what can be better yet.


Yes -d has never worked for me with CWP always had to run it SPAMDOPTIONS="-c

To expand on this Systemd handles running spamd so no need to daemonize

2
Nginx / Re: Restrict access to a cwp_service
« on: March 29, 2025, 12:48:12 PM »
Sorry I just read your post again so with this conf file Nginx will apply the apache directives:

cwp_services.conf

Is this necessary? or I can just continue with my Nginx conf to filter i.p access to certain directories / urls ?

Thanks, however I always find Apache Directives get ignored when running Nginx in CWP .

What am I missing that means the apache directives don't work, are you running Nginx ?

(...)
Is there a better way to do this using CWP ?

Create a file /usr/local/cwpsrv/conf/security.conf with the following content:

Code: [Select]
    #...
    satisfy any;

    allow 192.168.1.1/24;
    allow 127.0.0.1;
    deny  all;

    auth_basic           "Restricted access";
    auth_basic_user_file conf/ht_passwd;
Choose yours IP adresses, and/or define additional authentication on cwpsrv.

Create a file '/usr/local/cwpsrv/conf/ht_passwd' with your passwords:

Code: [Select]
# /usr/local/apache/bin/htpasswd /usr/local/cwpsrv/conf/ht_passwd

In file '/usr/local/cwpsrv/conf/cwp_services.conf', change your directive to:
Code: [Select]
location /pma {
    root /usr/local/cwpsrv/var/services;
    index  index.html index.htm index.php;
    include /usr/local/cwpsrv/conf/security.conf;
    (...)
}

...and restart cwp on the panel, or with the command:

Code: [Select]
# /scripts/restart_cwpsrv
Regards,
Netino

3
Nginx / Restrict access to a cwp_service
« on: March 26, 2025, 05:41:00 PM »
I cannot see another way to restrict access by IP to a pre configured CWP service such as round cube or php my admin

In this example phpmyadmin  /pma when running Nginx other than to edit for example:

usr/local/cwpsrv/conf/cwp_services.conf

And under the location for pma:

location /pma {
    if ($http_x_real_ip != XXX.XXX.XXX.XXX) {
                return 404;
        }
}

Is there a better way to do this using CWP ?

Pages: [1]