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

Pages: [1]
1
Apache / Re: Every website redirects to url:2031
« on: August 15, 2022, 04:19:33 PM »
> SOLUTION: Restarted CSF firewall and it started working in incognito mode now. I think this is resolved. Still confused what this has to do with CSF!!

2
Apache / Re: Every website redirects to url:2031
« on: August 15, 2022, 12:35:31 AM »
PS:
1. I removed vhost conf for one domain and tried restarting httpd still redirecting

2. Sometimes when tried in browser 2-3 times some site works but some never works and redirects to 2031 port

Curl/wget output is always same:

wget http://xyz.in/
--2022-08-15 06:01:41--  http://xyz.in/
Resolving xyz.in (xyz.in)... ip.add.ress.here
Connecting to xyz.in (xyz.in)|ip.add.ress.here|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://xyz.in:2031/ [following]
--2022-08-15 06:01:41--  https://xyz.in:2031/
Connecting to xyz.in (xyz.in)|ip.add.ress.here|:2031... connected.
ERROR: no certificate subject alternative name matches
        requested host name ‘xyz.in’.
To connect to xyz.in insecurely, use `--no-check-certificate'.
=========================================================

PS: I found that cwpsrv in weird way accepting connection on port 80 (!!!) And it is not even listening on port 80?!!!? Any idea

3
Apache / Every website redirects to url:2031
« on: August 14, 2022, 09:41:15 PM »
Hello,

If I try any website like http(s)://abc.com, It will redirect to https://abc.com:2031 . I have apache rebuilt several time with no luck.

Any idea on how to fix this?

4
Information / Posfix Increase Attachment size
« on: April 13, 2022, 08:34:37 AM »
This is how I changes postfix message size:

In file vi /usr/local/cwpsrv/var/services/roundcube/config/defaults.inc.php value was:
$config['max_message_size'] = '100M';

And in roundcube it will show 75 M as Attachment size

When I changed

$config['max_message_size'] = '500M';

It started showing 375 M as attachemnet size.

5
FTP / Re: 530 Login authentication failed
« on: March 16, 2021, 09:13:26 PM »
Same issue with me.

I created a user with user001 name and I was trying to access it but failed. Later I understood that the user name should be user@domain in my case it was user001@sxyzxyzs.pqr

(*domain name not disclosed)

6
CentOS Configuration / Re: I have a question about the port (nginx+apache)
« on: February 11, 2021, 08:19:44 AM »
It uses Proxypass to forward requests to the 8181 port. Any request on ort 80 will be internally passed to 8181

Your request ----->  Port 80 ------> Proxy pass -----> Redirect 8181 (Internally redirected) -------> load Data from Port 8181

7
SSL / Re: how to force https on rouncube webmail
« on: February 11, 2021, 06:43:54 AM »
I had this HTTP to HTTPS working some days ago, But after the CWP update, I guess the configuration changes I made were reset.

I tried again to set a redirect in webmail.conf but now I get too many redirects error and certificate error. I tried changing in Apache directly and it worked. I know this is not te best solution but it can be labelled as a workaround.

Webserver Setting >  Webserver Conf Editor > Apache Tab > Vhost file tab > Select Configuration file for Domain you wish to change redirection.

Before:
Code: [Select]
<VirtualHost 103.205.140.126:80>
   ServerName webmail.domain.com

   <IfModule mod_proxy.c>
      ProxyRequests Off
      ProxyPreserveHost On
                .
                .
                .

After:
Code: [Select]
      .
      .
      .
<VirtualHost 103.205.140.126:80>
   ServerName webmail.domain.com
       
       RewriteEngine On
       RewriteCond %{HTTPS} off
       RewriteRule (.*) https://%{SERVER_NAME}$1 [R,L]

   <IfModule mod_proxy.c>
      ProxyRequests Off
      ProxyPreserveHost On
      .
      .
      .
[code]
Do the same for mail.domain.com
If you have many domains I think there must be some way to have a common vhost configuration somewhere but not sure. Maybe you need to edit the template and rebuild apache to make this rule server-wide in one shot.

8
DNS / Autodicover Settings
« on: December 01, 2020, 02:33:47 PM »
Hello,

I have the latest version of CWP. When I configure email in any email client auto-discover returns imap.domain.com and smtp.domain.com. How can I change this as I don't have SSL for those sub-domains? Also, when I change the imap.domain.com and smtp.domain.com to mail.domain.com in manual thunderbird configuration it gives STARTTLS as default but I want SSL/TLS by default. is this because of the autodiscovery feature?  If yes where I can change this.

9
E-Mail / Re: Connection to storage server failed...
« on: August 01, 2020, 03:41:09 AM »
Hello,

Please post your sni configuration.

run this :

Code: [Select]
cat /etc/dovecot/sni.conf
Check if all entries are in this format :

Code: [Select]
      1 local_name "mail.domain.com webmail.domain.com" {
      2   ssl_cert = </etc/pki/tls/certs/domain.com.bundle
      3   ssl_key = </etc/pki/tls/private/domain.com.key
      4 }

10
E-Mail / Re: SSL issue thunderbird
« on: July 31, 2020, 06:31:04 PM »
Hello, this issue was due to CWP does not add Certificates automatically to postfix and dovecot configuration. I did t and everything is smooth now. I will build a module for that.

11
E-Mail / Re: SSL issue thunderbird
« on: July 17, 2020, 08:15:47 AM »
Hello,

I have not generated/added mail.pqr.co on the webserver. I have done exactly what you said, Pointed A record for mail.pqr.com(GoDaddy DNS), and generated Autossl for pqr domain and mail domain. Everything is working fine for pqr.com expect SSL/TLS option. Even STARTTLS settings are working fine.

Screenshot: https://ibb.co/MSSgs0K


12
E-Mail / SSL issue thunderbird
« on: July 16, 2020, 04:38:48 PM »
I have a CWP installation on openvz7 virtualization. I have configured it without any issues. But the only issue now is SSL with Email. I have no issues using STRTTLS which is working fine, but one of my clients wants SSL/TLS working in outlook and other mail clients. It gives below error while using the clients domain.

"Thunderbird Failed to find the settings for the Account"
Environment :
++++++++++++++++++++++++++++++++++++++++++
Panel : CWP
Main Domain: xyz.com
hostname: cwp01.xyz.com
account domain: pqr.com
Mail subdomain: mail.pqr.com
Email user: amey@ pqr.com
Incoming:
    Type: IMAP
    Hostname: mail.pqr.com
    Port: 993
    SSL: SSL/TLS
    Authentication: Normal Password
Outgoing:
    Type: SMTP
    Hostname: mail.pqr.com
    Port: 465
    SSL: SSL/TLS
    Authentication: Normal Password
 ++++++++++++++++++++++++++++++++++++++++++
So where is the issue? Thundrbird, Postfix or somewhere else?

Note : Same settings working when used main domain mail.xyz.com , or hostname cwp01.xyz.com.
Let me know if you want need any configuration

Pages: [1]