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

Pages: [1]
1
E-Mail / Re: Cant add autoresponder
« on: July 08, 2022, 07:15:42 AM »
work around that worked for me was to edit responder then untick "Only send during this time period". This then allowed me to save

NB: down side here is "Only send during this time period " remains unticked which means you manually have to set it up on start date and remove again for your time window.

This is not a fix! just a work around that worked for me.

2
E-Mail / Re: No HTML for autoresponder
« on: July 08, 2022, 07:12:36 AM »
found a work around but not ideal and could be only for my situation.

1. setup the auto responer and don't worry about html. then save
2. edit responder and then untick "Only send during this time period " and and tick "Use HTML in message " then save
3. edit again responder and now you can edit for html
4. save and hope it work

NB: down side here is "Only send during this time period " remains unticked which means you manually have to set it up and remove for your time window.

This is not a fix! just a work around that worked for me.

3
MySQL / Re: MariaDB-server upgrade error
« on: December 06, 2020, 09:56:34 AM »
Thumbs up to ehstbr

Steps works 100%

(not sure if my.cnf needs to be backed up first)

4
Hi,

Thanks! Just to confirm, The suggestion worked.

Using mail server manager in cwp to rebuild the mail server fixed it.

Thanks!

5
CentOS-WebPanel GUI / Re: web panel not loading information
« on: December 05, 2020, 10:49:21 AM »
Hi,

Thanks for the assist! Your suggestion worked!

solution:

I run as root: sh /scripts/cwpsrv_rebuild_user_conf

6
CentOS-WebPanel GUI / web panel not loading information
« on: December 03, 2020, 08:22:40 AM »
Hi,

I am unable to get any information in the user web panel. The main page loads but none of the menu options such as listing email accounts or domains works. It just shows the loading circle. Also the filemanager opens but does not show any folders/files in the right or middle columns.

 tail -f /usr/local/cwpsrv/logs/error_log gives the following indication:

Quote
2020/12/03 10:10:46 [error] 22387#0: *2242 FastCGI sent in stderr: "PHP message: PHP Warning:  scandir(): open_basedir restriction in effect. File(/usr/local/cwpsrv/var/services/user_files/modules/) is not within the allowed path(s): (/home/testdomainco:/tmp:/usr/local/cwpsrv/var/services/users:/usr/local/cwpsrv/var/services/twig/:) in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  scandir(/usr/local/cwpsrv/var/services/user_files/modules/): failed to open dir: Operation not permitted in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  scandir(): (errno 1): Operation not permitted in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  in_array() expects parameter 2 to be array, boolean given in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  main(): open_basedir restriction in effect. File(/usr/local/cwpsrv/var/services/user_files/modules/preferences/index.php) is not within the allowed path(s): (/home/testdomainco:/tmp:/usr/local/cwpsrv/var/services/users:/usr/local/cwpsrv/var/services/twig/:) in /usr/local/cwpsrv/var/services/users/index.php on line 0

I do not have open_basedir enabled in my global php.ini or any user directory.

I have a couple of domains on the server and the problem is the same for all of them.

Using the admin panel I am able to accomplish all tasks with no errors, only with web panel.

Any assistance will be appreciated

7
Postfix / Renewed SSL not loaded up for SNI
« on: November 04, 2020, 10:28:06 AM »
Hi,

Not sure if anybody else is experiencing this issue.

I am hosting multiple domains and using SNI with postfix and dovecot. When my SSL certificates gets renewed both dovecot and postfix still presents the old/expired certificate.

My current solutions:

Dovecot, simply restart the service.

Postfix I need to do the following:
cd /etc/postfix/
postmap -F hash:vmail_ssl.map
postfix reload

Hope this can help somebody with the same issue.

If anybody knows of a better or more automated way please share :)

8
Postfix / Email Auto Responders mysql-virtual_vacation.cf: Permission denied
« on: September 27, 2020, 12:11:48 PM »
Hi guys,

Having an issue with Email Auto Responders not working.

Adding the Email Auto Responders works and it is correctly in vaction table of the postfix database. Also the mail gets delivered to the mailbox with auto responder. Only the auto responder email is not sent

This is the error I get in /var/log/maillog :

delivered via vacation service (grep: /etc/postfix/mysql-virtual_vacation.cf: Permission denied PHP Warning:  mysqli_connect()

I traced the issue to /etc/postfix/vaction.php. On line 12, there is this php command:
$postfix_password = shell_exec("grep '^password' /etc/postfix/mysql-virtual_vacation.cf| awk {'print $3'}");

In vacation.php if I manually set $postfix_password to the password in mysql-virtual_vacation.cf it works 100% but I am guessing this is not ideal.

Also creating a php file with the same command: $postfix_password = shell_exec("grep '^password' /etc/postfix/mysql-virtual_vacation.cf| awk {'print $3'}"); does return the correct value. Running as root

So my next guess is that the the user account that needs to execute vacation.php does not have permissions to access mysql-virtual_vacation.cf and thus returns an empty value making vaction.php fail correctly.

file permissions are as follow:
vacation root vacation.php
root mail mysql-virtual_vacation.cf

/usr/local/cwp/php71/bin/php -v
PHP 7.2.30 (cli)



From this point on I am lost. The manual fix does work for now however.

Thanks


Pages: [1]