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.
1006
Migration from other control panels / Re: How to transfer backup through ssh
« on: June 02, 2023, 01:18:15 PM »
A sample command (from a remote cPanel to the local CWP) is listed on the wiki here:
http://wiki.centos-webpanel.com/how-to-manually-import-emails
http://wiki.centos-webpanel.com/how-to-manually-import-emails
Code: [Select]
rsync -avz -e "ssh -p 22" root@185.185.185.185:/home/USERNAME/mail/DOMAIN/USERNAME/ /var/vmail/DOMAIN/USERNAME/
1007
CentOS-WebPanel Bugs / Re: Cant login to CWP User :2083
« on: June 02, 2023, 01:15:27 PM »
Have you tried logging in twice? Login once and it appears to succeed but kicks you back to the login page. But then immediately login again and then it will actually succeed. This was a bug I encountered and was my workaround (but that client rarely logged into the user control panel, so it wasn't much of an issue). I resolved it by adjusting the features of the user under User Accounts>Features,Themes,Language -- since it was a dedicated VM for a single client, I effectively gave them full permissions and full features over every aspect of the server. After that, they were able to login on the first try. You don't need to go to that extreme, just try giving them one feature not currently assigned and see if that fixes it.
1008
Other / Re: Updating cURL and OpenSSL/1.0.2k-fips
« on: June 02, 2023, 02:17:55 AM »Quote
Note: The latest stable version is the 3.1 series supported until 14th March 2025. Also available is the 3.0 series which is a Long Term Support (LTS) version and is supported until 7th September 2026. The previous LTS version (the 1.1.1 series) is also available and is supported until 11th September 2023. All older versions (including 1.1.0, 1.0.2, 1.0.0 and 0.9.Off the cuff, I would suggest shooting for the 1.1.1 version upgrade, as it is supported until September 2023. It is unlikely to break things in the CWP stack which depend on the 1.0.x code branch. I don't know how much the 3.1 or 3.0 branch is as a drop-in replacement under CentOS 7.9 and the CWP stack -- so proceed at your own risk!are now out of support and should not be used. Users of these older versions are encouraged to upgrade to 3.1 or 3.0 as soon as possible. Extended support for 1.0.2 to gain access to security fixes for that version is available.
1009
E-Mail / Re: SMTP ERROR: Failed to connect to server: Connection refused (111)
« on: June 02, 2023, 02:11:33 AM »
465 is SSL/TLS. You can use STARTTLS with port 25 SMTP or 587 submission if you want to negotiate a secure channel on those ports.
Are you allowing outgoing mail ports in your firewall config file -- /etc/csf/csf.conf?
TCP_IN = "21,22,25,53,80,110,143,443,465,587,993,995,2083,2096,2304"
TCP_OUT = "20,21,22,25,22,53,80,110,113,443,2083,2096,587,993,995,2080,2443"
Are you allowing outgoing mail ports in your firewall config file -- /etc/csf/csf.conf?
TCP_IN = "21,22,25,53,80,110,143,443,465,587,993,995,2083,2096,2304"
TCP_OUT = "20,21,22,25,22,53,80,110,113,443,2083,2096,587,993,995,2080,2443"
Code: [Select]
SMTP_PORTS = "25,465,587"
PORTS_imapd = "143,993"
PORTS_pop3d = "110,995"
1010
E-Mail / Re: Firewall is blocking email delivery
« on: June 02, 2023, 02:06:48 AM »
Are you allowing outgoing mail ports in /etc/csf/csf.conf?
TCP_IN = "21,22,25,53,80,110,143,443,465,587,993,995,2083,2096,2304"
TCP_OUT = "20,21,22,25,22,53,80,110,113,443,2083,2096,587,993,995,2080,2443"
TCP_IN = "21,22,25,53,80,110,143,443,465,587,993,995,2083,2096,2304"
TCP_OUT = "20,21,22,25,22,53,80,110,113,443,2083,2096,587,993,995,2080,2443"
Code: [Select]
SMTP_PORTS = "25,465,587"
PORTS_imapd = "143,993"
PORTS_pop3d = "110,995"
1011
Other / Re: Updating cURL and OpenSSL/1.0.2k-fips
« on: June 02, 2023, 01:56:31 AM »Code: [Select]
$ yum info openssl
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: la.mirrors.clouvider.net
* epel: irltoolkit.mm.fcix.net
* extras: linux.mirrors.es.net
* updates: mirrors.oit.uci.edu
Installed Packages
Name : openssl
Arch : x86_64
Epoch : 1
Version : 1.0.2k
Release : 26.el7_9
Size : 814 k
Repo : installed
From repo : updates
Summary : Utilities from the general purpose cryptography library with TLS implementation
URL : http://www.openssl.org/
License : OpenSSL
Description : The OpenSSL toolkit provides support for secure communications between
: machines. OpenSSL includes a certificate management tool and shared
: libraries which provide various cryptographic algorithms and
: protocols.
https://webhostinggeeks.com/howto/install-update-openssl-centos/
1012
Other / Re: Updating cURL and OpenSSL/1.0.2k-fips
« on: June 02, 2023, 01:26:14 AM »
What OS version? CentOS 7.9 or something else?
1013
CentOS Configuration / Re: How to configure SpamAssassin
« on: June 01, 2023, 03:19:15 AM »
For sure, that's how it is supposed to work:
Code: [Select]
overseer@srv$ less /etc/spamassassin/local.cf
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.
1014
CentOS Configuration / Re: How to configure SpamAssassin
« on: May 31, 2023, 09:25:16 PM »
That's how it's supposed to work...
Code: [Select]
[overseer@srv ~]$ less /etc/spamassassin/local.cf
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
1015
Backup / Re: Backup Time
« on: May 31, 2023, 09:22:32 PM »
You're right -- I only checked one of my CWP servers and that was the only one that had this listed under root's crontab:
Code: [Select]
0 0 * * * /usr/local/cwp/php71/bin/php /usr/local/cwpsrv/var/services/user_files/modules/backups/cron_autobackup.php
And of course, it's an opaque black box, because it's IonCube encrypted... **sigh**!
1016
Apache / Re: server reached MaxClients setting, consider raising the MaxClients setting
« on: May 31, 2023, 09:19:45 PM »
Another recommendation is to switch to nginx if you want a more performant web server that consumes less resources than a patchy (apache) web server.

1017
Backup / Re: Backup Time
« on: May 31, 2023, 01:40:07 PM »
Is it not in root's crontab, running at midnight daily:
/usr/local/cwpsrv/var/services/user_files/modules/backups/cron_autobackup.php
/usr/local/cwpsrv/var/services/user_files/modules/backups/cron_autobackup.php
1018
Migration from other control panels / Re: cPanel to CWP Pro Migration -> DNS Zones owned by root (in cPanel)
« on: May 31, 2023, 05:11:36 AM »
Create the zone manually with CWP, then paste in the contents of the originating .db file from the cPanel server into the new zone on CWP. If it works, it should be scriptable.
1019
PHP Selector / Re: php selector error 500
« on: May 30, 2023, 04:29:01 AM »
Are you running PHP in CGI mode or php-fpm?
1020
CentOS Configuration / Re: How to configure Postfix
« on: May 30, 2023, 03:56:21 AM »
For proper form, multi-line postfix directives should have commas at the end of each line:
Code: [Select]
smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unknown_sender_domain,
reject_unknown_reverse_client_hostname,
reject_unknown_client_hostname