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

Pages: [1]
1
New Modules / Re: [Module] Track E-mail Delivery
« on: October 08, 2023, 05:36:04 PM »
i really would like this to work but i get this error message:
You are not authorized to use this module (email_delivery)- Contact Server Admin

what can cause this?

2
Postfix / Re: Postfix uses wrong IP address
« on: September 11, 2023, 04:02:41 PM »
I have added that to my postfix configuration but it still sends messages with the addon IP address.
Here are some of the output from the Undelivered Mail Returned to Sender emails
Code: [Select]
    gmail-smtp-in.l.google.com[108.177.15.27] said: 550-5.7.1 [xx.xx.xx.xx
    18] Our system has detected that this message is 550-5.7.1 likely
    suspicious due to the very low reputation of the sending IP 550-5.7.1
    address. To best protect our users from spam, the message has been
    550-5.7.1 blocked. Please visit 550 5.7.1
    https://support.google.com/mail/answer/188131 for more information.
    z5-20020a05600c0a0500b003fbef8ad8f5si3205315wmp.40 - gsmtp (in reply to end
    of DATA command)

3
Scripts / Re: CWP update script
« on: August 30, 2023, 07:48:37 PM »
This is the content of the
Code: [Select]
/scripts/update_cwp file:
Code: [Select]
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
Opening the
Code: [Select]
cron.php file looks like this:

Code: [Select]
<?php //0042b
// Copyright CentOS WebPanel, Decoding is FORBIDDEN
// All Rights Reserved. www.centos-webpanel.com
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('No Loader is installed, please try to run this command or contact support: sh /scripts/update_ioncube restart');exit(199);
?>

HR+cPoTbtmwVi28X5jrBBL2P6jRk8obnO6pNLT0RCClQBgWMxWfn/CCNgHQKOgpHLl+vYLBoub3l
v4wyOVfsU8EmTyvxbwGRC3CtfbYPJwpXtikDJFaoqdpXPAi5PT2vVELfG5twWyGg5r5QJS/zACrE
Rvz52/GFwGjh9NGHyz7NWohx2uV49i2GNSu7CK2BpMHTt7YkW2zxs9izxEG2WRzG+M/gh/m9Ghcf
Lk/nbUHjFk5ZSqiDKo5x8eDFN8t8Wfpk8Iv6dmDDRMmXcr8XusMTrvK+hVMptDRbVQ/El+VrTU+5
q9abqO5s0ef92nOxPJWlnmUcMTHUgmANyXXW8vbJVIuzbaTcT/xVjFVC3EnGxwBeibWAR7H9q7Z3

So i have no way of NOT restarting apache every night...

4
Scripts / Re: CWP update script
« on: August 29, 2023, 08:03:32 AM »
That file is manglede by the cwp team so i cannot edit it.

5
Scripts / CWP update script
« on: August 28, 2023, 06:17:21 PM »
I see that the CWP update script runs daily, thats OK i think,. but at the end it restarts Apache webserver, i i really do not get why, this also restarts my PHP cache and several other services, is this possible to turn off?

6
Postfix / Postfix uses wrong IP address
« on: August 28, 2023, 06:15:18 PM »
When i send an email, i have a PTR record for my hostname server.domain.com it has IP 192.168.0.1
I also have an addon IP address 192.168.0.2
IPs and hostname is changed to make this simple.

When i send an email it uses the 192.168.0.2 IP address and not the one for the hostname, this has the "wrong" PTR record, and so gmail blocks the email because its not "correct" ptr and several other parameters.

How do i change this so it doesnt happen? server sends around 1000-2000 mail a day and about 50-100 are blocked. this is quite irritating that it does not use hostname and server IP in CWP for sending email. it uses ANY ip address!

7
I had this problem to and then i enabled logrotation on a weekly basis and that made the monthly stats start to work again. The log files were too big for goaccess to read.

8
Apache / update_cwp restarts apache
« on: July 16, 2023, 07:32:36 PM »
I dont need, and dont want to restart httpd every time the update_cwp runs,

How can i disable this?

9
CentOS-WebPanel GUI / Re: [Feature Request] Use A Full Apache Status
« on: June 25, 2023, 05:09:48 PM »
Following my feature request, I have now integrated it in CWP, so for the benefit of others..

1. Create /usr/local/cwpsrv/htdocs/resources/admin/modules/apache_status.php with the following contents

Code: [Select]
<?php
// Apache Status - Accesses v0.4

$url "http://localhost/server-status";
$ch_session curl_init();
curl_setopt($ch_sessionCURLOPT_RETURNTRANSFER1);
curl_setopt($ch_sessionCURLOPT_URL$url);
$result_url curl_exec($ch_session);
echo 
$result_url;

?>


To Add under webservers instead of Developer Options
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
<script type="text/javascript">
        $(document).ready(function() {
                var newButtons = ''
                +' <li>'
                +' <a href="?module=apache_status"><span aria-hidden="true" class="icon16 icomoon-icon-switch"></span>Apache Status - Accesses</span></a>'
                +'</li>';
                $("ul#mn-15-sub").prepend(newButtons);
        });
</script>

10
I can build it / Re: Apache Status - Accesses
« on: June 24, 2023, 07:36:41 PM »
This would be better and show more info:

Code: [Select]
<?php
// Apache Status - Accesses v0.4

$url "http://localhost/server-status";
$ch_session curl_init();
curl_setopt($ch_sessionCURLOPT_RETURNTRANSFER1);
curl_setopt($ch_sessionCURLOPT_URL$url);
$result_url curl_exec($ch_session);
echo 
$result_url;

?>

Pages: [1]