1
Kloxo-MR Technical Helps / letsencrypt in mail server
« on: 2017-10-05, 20:31:54 »
Can SSL (let's encrypt) be specified for mail?
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.
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"^M
Header always set X-XSS-Protection "1;mode=block"^M
Header always set X-Frame-Options "SAMEORIGIN"^M
Header always set Access-Control-Allow-Origin "*"
Header always set X-Supported-By "Kloxo-MR 7.0"
RequestHeader unset Proxy early
</IfModule>
Clients — "Username" — Domains — "Userdomain.com" — {Web Features} => General Header (in Apache Format; Blank To Reset)
perl -p -i -e "s/\r//g" /opt/configs/apache/conf/domains/*
/opt/configs/php-fpm/sock/<?=$phpselected;?>-<?=$sockuser;?>.sock
<IfModule mod_fastcgi.c>
Alias /<?=$domainname;?>.<?=$count;?>fake "<?=$webdocroot;?>/<?=$domainname;?>.<?=$count;?>fake"
#FastCGIExternalServer "<?=$webdocroot;?>/<?=$domainname;?>.<?=$count;?>fake" \
# -host 127.0.0.1:<?=$fpmport;?> -idle-timeout <?=$timeout;?> -pass-header Authorization
FastCGIExternalServer "<?=$webdocroot;?>/<?=$domainname;?>.<?=$count;?>fake" \
-socket /opt/configs/php-fpm/sock/<?=$phpselected;?>-<?=$sockuser;?>.sock \
-idle-timeout <?=$timeout;?> -pass-header Authorization
<FilesMatch \.php$>
SetHandler application/x-httpd-fastphp
</FilesMatch>
Action application/x-httpd-fastphp /<?=$domainname;?>.<?=$count;?>fake
<Files "<?=$domainname;?>.<?=$count;?>fake">
RewriteCond %{REQUEST_URI} !<?=$domainname;?>.<?=$count;?>fake
</Files>
</IfModule>
Desactivando el generador de registros del sistema: [ OK ]
Deteniendo named: . [ OK ]
Stopping php-fpm (PHP Used): [ OK ]
Parando httpd: [ OK ]
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Parando pure-ftpd: [ OK ]
Stopping kloxo-phpcgi: [ OK ]
Stopping kloxo-hiawatha: [ OK ]
- For help, type '/script/restart-all [--help|-h]'
A. Control Panel:
- Kloxo-MR: 7.0.0.b-2016060105
- Web: hiawatha-10.2.0-f.7.mr.el6.x86_64
- PHP: php54s-5.4.40-1.ius.el6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: mydomain.mydomain.com
C. Services:
1. MySQL: MariaDB-server-10.0.25-1.el6.x86_64
2. PHP:
- Branch: php54-cli-5.4.45-1.ius.el6.x86_64
- Multiple:
* php52m-5.2.17-102.mr.el6
* php53m-5.3.29-1.ius.el6
* php54m-5.4.40-1.ius.el6
* php55m-5.5.24-1.ius.el6
* php56m-5.6.8-1.ius.el6
- Used: --Use PHP Branch--
3. Web Used: apache
- Hiawatha: --unused--
- Lighttpd: --uninstalled--
- Nginx: --uninstalled--
- Httpd: httpd-2.2.31-1.mr.el6.x86_64
- PHP Type: php-fpm_event
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.7-1.mr.el6.x86_64
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: courier-imap-toaster-4.1.2-1.3.19.mr.el6.x86_64
- spam: spamassassin
sh /script/sysinfo
A. Control Panel:
- Kloxo-MR: 7.0.0.b-2016060105
- Web: hiawatha-10.2.0-f.7.mr.el6.x86_64
- PHP: php54s-5.4.40-1.ius.el6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: mydomain.mydomain.com
C. Services:
1. MySQL: MariaDB-server-10.0.25-1.el6.x86_64
2. PHP:
- Branch: php54-cli-5.4.45-1.ius.el6.x86_64
- Multiple:
* php52m-5.2.17-102.mr.el6
* php53m-5.3.29-1.ius.el6
* php54m-5.4.40-1.ius.el6
* php55m-5.5.24-1.ius.el6
* php56m-5.6.8-1.ius.el6
- Used: --Use PHP Branch--
3. Web Used: apache
- Hiawatha: --unused--
- Lighttpd: --uninstalled--
- Nginx: --uninstalled--
- Httpd: httpd-2.2.31-1.mr.el6.x86_64
- PHP Type: php-fpm_event
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.7-1.mr.el6.x86_64
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: courier-imap-toaster-4.1.2-1.3.19.mr.el6.x86_64
- spam: spamassassin
...
Update Kloxo database
- Updating process
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
...
- Fix mail-all services
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
...
Parando httpd: [FALLÓ]
Iniciando httpd: Syntax error on line 296 of /opt/configs/apache/conf/domains/domain.me.conf:
SSLCertificateFile: file '/home/kloxo/httpd/ssl/eth0_0___localhost.pem' does not exist or is empty
ls: no se puede acceder a /home/kloxo/httpd/ssl/: No existe el fichero o el directorio
send: delivery 648: deferral: not_allowed_to_perform_deliveries_as_root./
A. Control Panel:
- Kloxo-MR: 7.0.0.b-2016030202
- Web: hiawatha-10.1.0-f.6.mr.el6.x86_64
- PHP: php54s-5.4.40-1.ius.el6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.7 (Final) x86_64
- Hostname: skobox.kobox.org
C. Services:
1. MySQL: MariaDB-server-10.0.24-1.el6.x86_64
2. PHP:
- Branch: php54-cli-5.4.45-1.ius.el6.x86_64
- Multiple:
* php52m-5.2.17-102.mr.el6
* php53m-5.3.29-1.ius.el6
* php54m-5.4.40-1.ius.el6
* php55m-5.5.24-1.ius.el6
* php56m-5.6.8-1.ius.el6
- Used: --Use PHP Branch--
3. Web Used: apache
- Hiawatha: --unused--
- Lighttpd: --uninstalled--
- Nginx: --uninstalled--
- Httpd: httpd-2.2.31-1.mr.el6.x86_64
- PHP Type: php-fpm_event
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.7-1.mr.el6.x86_64
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
- spam: spamassassin
domain: mydomain1.com
uid: 0
gid: 0
dir:
users: 2147483646
domain: mydomain2.com
uid: 0
gid: 0
dir:
users: 0
domain: mydomain3.com
uid: 7801
gid: 7801
dir: /home/lxadmin/mail/domains/mydomain3.com
users: 0
domain: mydomain4.com
uid: 7801
gid: 7801
dir: /home/lxadmin/mail/domains/mydomain4.com
users: 0
Panel
Kloxo http https
Webmail http https
PHPMyAdmin http https
Admins on CP
sh /script/restart-mail
- For help, type '/script/restart-mail [--help|-h]'
sh /script/restart-mail --help
------------------------------------------------------------------------------
format: sh /script/restart-mail [--force|-y]
------------------------------------------------------------------------------
--force or -y
- running '/etc/init.d/httpd restart' instead custom 'restart' declare
inside /etc/local/lxlabs/kloxo/etc/process
- use it if trouble restart without '--force' or '-y'