- If you have CWPpro licence, first change IP to new one at https://support.centos-webpanel.com/clientarea.php and then follow following steps
- Create/update reverse DNS in your VPS provider. That would be your new hostname.
- Create nameservers with new IP in Domain registrar.
- Go to CWP Settings and then IP Manager and add the new IP address with Netmask and Gateway. Note that you have to configure the VPS with new IP and test it accordingly.
- Go to Server Settings and then Change Hostname and replace New Hostname with rDNS/PTR records of your Default/New IP. Confirm that everything here looks ok.
- Go to User Accounts and then List Accounts and you need to go to “Edit Account” section of all accounts on your server and replace IP field with Default/New IP Address (you also must check the “Update DNS Zone” checkbox). Test one account first and if it works then go for all accounts. SSL may cause but will be resolved automatically. You may have to use VPN to test.
- Go to CWP Settings and then Edit Settings and replace Shared IP field with Default/New IP Address. Check the “Rebuild vHosts” check box and save changes.
- Go to DNS Functions and then Edit Nameservers IPs and replace all NS1 and NS2 IPs with Default/New IP Address.
- After completing all of the above, rebuild WebServer in order to prevent future issues , So you need to Go to Apache Settings and then Apache Re-Build and recompile your apache webserver
- If you were using Varnish Cache or Nginx Reverse Proxy you must have to Go to Apache Settings and then Select WebServers and select Default Web Servers which you were using and Click on “Save & Rebuild Configuration“.
- if you were using MailServer you should Rebuild your MailServer. Go to Email and then MailServer Manager and Rebuilt Mail Server. If you need to restart all mail server services (Postfix, ClamAV, Amavis, Spamassassin, Dovecot) you can do that here.
- Reboot your server
- Enjoy!
How to secure port 2083 | CWP
- Securing port 2083
- Adding SSL on CWP
- Secure CWP ports – Centos-Web Panel
- Secure CWP Admin Panel Port 2031
There are options to login to CWP
1) Access the user panel via panel.(domain.com)
2) Access the user panel via (hostname):2083
(domain.com):2083 will result in an ssl error, as the certificate is assigned to the hostname only.
Use server hostname for ssl connection to cwp.
You would have many manual work to setup SSL for each domain
You can check this config locations
/usr/local/cwpsrv/conf/
/usr/local/cwpsrv/conf.d/
Some Tricks
- Use “Change Hostname” (don’t have to change anything, if it looks right. Just have to save as it is.)
Server Settings, Change Hostname - Reissue all certs that were issues
- Check /var/log/cwp/autossl.log
- Use cpanel subdomain
For example, cpanel.domain.com
OJS Email Sending Problem
- There was a problem sending an email message. Please try again later, or contact your system administrator.
At first, check whether Principal Contact details were added in Journal. Then go for Step One.
Step One
Turn on SMTP in config.php
[email] ; Use SMTP for sending mail instead of mail() smtp = On ; SMTP server settings smtp_server = mail.example.com smtp_port = 25 ; Enable SMTP authentication ; Supported smtp_auth: ssl, tls (see PHPMailer SMTPSecure) smtp_auth = ssl smtp_username = username smtp_password = password ;
You contact hosting provider to get the SMTP details
NB: If the above setting does not work anyway, then go for adding envelop sender.
Step Two
Allow envelop sender
; Allow envelope sender to be specified ; (may not be possible with some server configurations) allow_envelope_sender = On ; Default envelope sender to use if none is specified elsewhere default_envelope_sender = my_address@my_host.com ; Force the default envelope sender (if present) ; This is useful if setting up a site-wide no-reply address ; The reply-to field will be set with the reply-to or from address. force_default_envelope_sender = On
Make sure to match the domain in your default_envelope_sender with the domain of OJS installation. If it doesn’t match this increases the spam rating.
Centos 7 with DirectAdmin installation checklist
Install the following prerequisite
Step One
- Run yum update command
yum update
- Run wget update command
yum install wget
Step Two
- For CentOS 7
yum install psmisc net-tools systemd-devel libdb-devel perl-DBI
- For CentOS 6
wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libtool which patch mailx db4-devel
DirectAdmin Installation
- Disable SELinux. Disable the firewall.
setenforce 0
- Download DirectAdmin installation script.
wget http://www.directadmin.com/setup.sh
- Change the downloaded setup file permission
chmod 755 setup.sh
- Now run the installation script.
./setup.sh
- Enter your License Key. Installation Completed. Login to DirectAdmin
http://serverip:2222
For more Configuration: [Visit]
Postfix Mail Queue
Postfix Mail Queue Management
To view the number of emails in the Postfix mail queue
mailq
Postfix delete mail queue: postsuper command
To delete all emails in the queue
postsuper -d ALL
To remove all mails in the deferred queue
postsuper -d ALL deferred
To remove a particular mail from the queue
postsuper -d mail_id
To remove messages from a particular domain.
mailq | grep xdomain.com | awk {'print $1'} | xargs -I{} postsuper -d {}
To remove all mails from a particular mail id
mailq | tail +2 | awk 'BEGIN { RS = "" } / testmail@xdomain\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -
To remove all mails which have testmail@xdomain.com in the entire mail.
for id in `postqueue -p|grep '^[A-Z0-9]'|cut -f1 -d' '|sed 's/*//g'`; do postcat -q $id | grep testmail@domain.com && postsuper -d $id; done
To remove all mails which have a particular pattern like “.de”
for id in `postqueue -p|grep '^[A-Z0-9]'|cut -f1 -d' '|sed 's/*//g'`; do postcat -q $id | grep “.de” && postsuper -d $id; done
Postfix queue structure
/var/spool/postfix/maildrop /var/spool/postfix/hold /var/spool/postfix/incoming /var/spool/postfix/active /var/spool/postfix/deferred /var/spool/postfix/corrupt
Display the list of Queued mails , deferred mails, and Pending mails
postqueue -p
To Display the mail header and contents
postcat -q “Queue ID”
To check the total number of mails in the queue
postqueue -p | grep -c "^[A-Z0-9]"
To attempt to send one particular mail
postqueue -i “Queue ID”
Force mails on Postfix
To reattempt delivery of all mails in the queue
postqueue -f
- « Previous Page
- 1
- …
- 13
- 14
- 15
- 16
- 17
- …
- 42
- Next Page »