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

Pages: [1] 2
1
CentOS 7 Problems / Re: I want to update Roundcube 1.5.6 but it fails
« on: August 29, 2024, 09:05:22 AM »
Thanks you very much ^^
I will update to Mariadb 10.11 to see how it goes.

2
CentOS 7 Problems / Re: I want to update Roundcube 1.5.6 but it fails
« on: August 27, 2024, 01:38:34 AM »
So it is likely that the old version of Mariadb does not support it, because I have adjusted it so that Yum Update can be done normally. Now update Mariadb to a higher version and run the above command again, right?

3
CentOS 7 Problems / I want to update Roundcube 1.5.6 but it fails
« on: August 26, 2024, 09:23:59 AM »
And found this link:
https://www.alphagnu.com/topic/33-update-cwp-roundcube-mail-version-156-%E2%80%93-control-web-panel/#comment-35
After I enter the first command:
yum update ca-certificates -y
it gives the following error:

[root@rsrvr19~]# yum update ca-certificates -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                            | 5.1 kB  00:00:00
 * epel: repo.jing.rocks
base                                                                                            | 3.6 kB  00:00:00
cwp                                                                                             | 2.9 kB  00:00:00
extras                                                                                          | 2.9 kB  00:00:00
http://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



 One of the configured repositories failed (MariaDB),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=mariadb ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable mariadb
        or
            subscription-manager repos --disable=mariadb

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=mariadb.skip_if_unavailable=true

failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
http://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

I don't know if it's because something is missing, or because the Mariadb version is old.
If I continue with the next commands, will I be able to update?
I'm using PHP4.7.28, Mariadb 10.2.43, Nginx+Apache
Thanks everyone for checking it out.

4
Postfix / Re: Has anyone encountered this situation?
« on: December 29, 2023, 02:14:03 AM »
Thank you Two bro.
I have a separate inbox with the imap.log file link.
Two bro, please help me see if there's anything strange.
Thank you very much.

5
Postfix / Re: Has anyone encountered this situation?
« on: December 28, 2023, 08:44:54 AM »
Truncating to zero bytes leaves the file in place with its correct permissions, then the IMAP daemon (dovecot) will continue to log to the file. It will make it more manageable for you to start over from zero.

Thank you, it worked well.
But imap.log works continuously, just after 30 minutes of deleting it has jumped back to nearly 1gb.
For now, just use your method.
Thank you very much.

6
Postfix / Re: Has anyone encountered this situation?
« on: December 27, 2023, 07:14:19 AM »
before you delete it, investigate if there are numerous errors in it.  If it's just logging imap connections, you can safely delete it.
Thank you, I don't know what to do with it.

7
Postfix / Re: Has anyone encountered this situation?
« on: December 27, 2023, 07:12:13 AM »
Start over if you are encountering errors; it will make them easier to parse and diagnose. Truncate the log file to zero bytes:
Code: [Select]
truncate -s0 /usr/local/cwpsrv/var/services/roundcube/logs/imap.log

Thank you for your help.
I'm wondering if Truncate = 0 will it continue to save to the imap.log file or not?

8
Postfix / Has anyone encountered this situation?
« on: December 26, 2023, 08:48:08 AM »
Has anyone encountered this situation?
Currently I have a log file named: imap.log
It's more than 600gb, I don't know what to do with it, I don't know whether to empty it or not.
Has anyone encountered this problem and how did you solve it? It takes up too much space on your server.
Thank you.
[~]# cd /usr/local/cwpsrv/var/services/roundcube/logs/
4.0K carddav.log
6.4M errors.log
601G imap.log
9.3M sendmail.log
4.0K userlogins.log

9
E-Mail / Has anyone encountered this situation?
« on: December 26, 2023, 08:47:33 AM »
Currently I have a log file named: imap.log
It's more than 600gb, I don't know what to do with it, I don't know whether to empty it or not.
Has anyone encountered this problem and how did you solve it? It takes up too much space on your server.
Thank you.
[~]# cd /usr/local/cwpsrv/var/services/roundcube/logs/
4.0K carddav.log
6.4M errors.log
601G imap.log
9.3M sendmail.log
4.0K userlogins.log

10
I also got this error, and I fixed them by reassigning the owner rights:
chown -R

11
How to / Re: [Tutorial] How to install SSL on hostname?
« on: April 01, 2022, 01:36:25 AM »
I will add more pictures.
<a href="https://ibb.co/Z6QWv5M"><img src="https://i.ibb.co/VWF2bRq/01.png" alt="01" border="0"></a>
<a href="https://ibb.co/tM2FRLj"><img src="https://i.ibb.co/rGpN9d8/02.png" alt="02" border="0"></a>
<a href="https://ibb.co/8Xfgvrq"><img src="https://i.ibb.co/SJMwYtb/03.png" alt="03" border="0"></a>

2087 and 2083 are handled by the cwp version of nginx itself (/usr/local/cwpsrv/)

Whereas your third picture is run by apache/nginx (Whichever you use). 

Do the following:
grep cert /usr/local/cwpsrv/conf/cwpsrv.conf   Copy the 2 lines

FOr Apache:
nano /usr/local/apache/conf.d/hostname-ssl.conf
Find all instances of SSLCertificateFile and SSLCertificateKeyFile and point them to the cert above:

For Nignx:
 nano /etc/nginx/conf.d/hostname-ssl.conf
Find all Instances of ssl_certificate and ssl_certificate_key and point them to the cert above

After making the changes, systemctl restart httpd and nginx -s reload

Thank you very much,
Can you show me how to do it in detail, because I'm not familiar with it, I just installed CWP.
Please sympathize.
I switched back to using only Apache.

12
How to / Re: [Tutorial] How to install SSL on hostname?
« on: March 31, 2022, 09:29:59 AM »
I will add more pictures.
<a href="https://ibb.co/Z6QWv5M"><img src="https://i.ibb.co/VWF2bRq/01.png" alt="01" border="0"></a>
<a href="https://ibb.co/tM2FRLj"><img src="https://i.ibb.co/rGpN9d8/02.png" alt="02" border="0"></a>
<a href="https://ibb.co/8Xfgvrq"><img src="https://i.ibb.co/SJMwYtb/03.png" alt="03" border="0"></a>

13
How to / Re: [Tutorial] How to install SSL on hostname?
« on: March 31, 2022, 09:19:38 AM »
Hello,

I could see that a lot of users are asking "How to install SSL on hostname" and I found a few tutorials some of which are working and others do not. Also, the tutorials which are working are lenghty and not for linux newbie.

So, I will teach you here how to install and configure Letsencrypt Free SSL on hostname in CWP in simple 3 steps.

1 - Check that you should have an A record for the hostname. For example if your server hostname is cp.hostinpk.com, then you should have an A record for "cp" pointing to server IP

2 - Login to CWP Admin Panel>> Server Settings>>Change Hostname and then hit "Change Hostname" button after putting your desired hostname (in my case cp.hostinpk.com). This will only generate a valid LE SSL for your hostname when an A record is present against hostname

3 - Perform following command from shell
Code: [Select]
service cwpsrv reload
THAT's IT. Enjoy the green padlock while accessing the CWP services (admin panel, user panel, webmail, etc..)
Hi,
Thank you for the great guide.
I have been able to access cwp-panel with ssl, but only webmail roundcube, when I log in, there is still no ssl.
I'm using Apache
Hope you can help yourself.

14
Updates / Re: problem following update 01/11
« on: March 31, 2022, 02:28:05 AM »
Problem solved for me
for information
the user must also go to his 2083 panel and go to PHP Selector
select domain and php version apply
Thank you for the solution.
But can you be more detailed, because I go to the PHP Sector and I see a lot of entries and I don't see where to choose Domain.
Thank you.

15
Hi,
I have the same problem as you but my ISP doesn't block port 25.
I send and receive mail to Gmail, it's fine, the mail goes to Gmail's inbox and doesn't spam.
But when I send to Yahoomail and Hotmail even Mail-tester gives error port 25:
<mainmain.com@yahoo.com>: connect to
    mta6.am0.yahoodns.net[67.195.204.72]:25: Connection timed out
--------------------------
<mainmain.com@hotmail.com>: connect to
    hotmail-com.olc.protection.outlook.com[104.47.73.161]:25: Connection timed out
--------------------------
<test-j466zqh2b@srv1.mail-tester.com>: connect to
    reception.mail-tester.com[94.23.206.89]:25: Connection timed out
--------------------------
I asked Support from CWP, they were also very enthusiastic but were unsuccessful.
They have a solution for themselves that should change the mail server name:

"I noticed that the server hostname you are using seems not correct, we do not recommend using the system words like mail. in server hostname. We recommend changing the server hostname to something else like server or server1 or srv or srv1."

"We already tried all other solutions, there is the only way to change the server hostname and the emails will start working fine."
---------------------
I haven't changed it yet because I'm afraid it will damage the mail server because I'm sending it very well to Gmail.
Very headache.

Pages: [1] 2