Home Blog

Installing Exchange Server 2019 on Windows Server 2022

0

Installing Microsoft Exchange Server 2019 on Windows Server 2022 involves several steps. Before you begin, ensure that your server meets the system requirements and that you have prepared your environment for the installation. Here’s a step-by-step guide:

Note: This installation process assumes that you have a basic understanding of Windows Server administration and networking.

Vps Provider With Port 25 Open

  1. Contabo.

Hardware Requirements –
Processor: 64-bit processors from intel or AMD.

Ram :- 8 Gb Ram

Hard Disk Space :- 30 GB+

Software Requirements –
Operating System – Windows Server 2012 R2 Standard or Above.
ADDS – The Active Directory forest functional level is windows server 2012 R2 or higher.

Step 1: Prepare Your Environment

  1. Verify System Requirements:
    • Ensure that your server hardware meets the minimum requirements for Exchange Server 2019, including CPU, RAM, and storage.
  2. Install Windows Server 2022:
    • Install Windows Server 2022 on your server machine. Ensure that it’s fully updated with the latest patches and updates.
  3. Install Required Windows Features:
    • Open PowerShell as an administrator and run the following command to install the required Windows features:
Install-WindowsFeature NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation

Tool to Download And Install-

 Visual C++ redistributable package

Unified Communications Managed API 4.0 Runtime.

IIS URL Rewrite module

Step 2: Prepare Active Directory

  1. Install Active Directory Domain Services
  2. Open Server Manager:
    • Log in to Windows Server 2022.
    • Open Server Manager by clicking on the “Server Manager” icon in the taskbar or using the Start menu.
  3. Add Roles and Features:
    • In Server Manager, click on “Manage” in the top-right corner and then select “Add Roles and Features.”
    • Follow the wizard to add the required roles and features.
  4. Role-Based or Feature-Based Installation:
    • Choose “Role-based or feature-based installation” and click “Next.”
  5. Select a Server:
    • Ensure that your server is selected, and click “Next.”
  6. Select Server Roles:
    • Scroll down and select “Active Directory Domain Services.”
    • Click “Add Features” when prompted.
    • Click “Next.”
  7. Add Features:
    • You may be prompted to add additional features required for AD DS. Click “Next” to proceed.
  8. Select Features:
    • Review the features to be installed and click “Next.”
  9. Confirm Installation:
    • Review the information and click “Install.”
  10. Installation Progress:
    • Wait for the installation to complete. This may take a few minutes.
  11. Promotion of the Server to a Domain Controller:
    • After the AD DS role is installed, you’ll see a notification in Server Manager. Click on it to start the configuration.
  12. Deployment Configuration:
    • In the “Deployment Configuration” wizard, select “Add a new forest” and click “Next.”
  13. Root Domain Name:
    • Enter the root domain name for your Active Directory forest (e.g., example.com).
    • Click “Next.”
  14. Domain Controller Options:
    • Choose the appropriate options for your domain controller, including the Directory Services Restore Mode password.
    • Click “Next.”
  15. DNS Options:
    • If you haven’t already installed DNS on your server, you’ll be prompted to install it as well.
    • Review the options and click “Next.”
  16. Additional Options:
    • Configure any additional options as needed.
    • Click “Next.”
  17. Review Options:
    • Review your configuration options and click “Next.”
  18. Prerequisites Check:
    • The wizard will run a prerequisites check. Ensure that there are no errors or warnings.
    • Click “Install” to start the configuration.
  19. Promotion Progress:
    • Wait for the promotion to complete. Your server will be rebooted as part of the process.

Step 3: Install Exchange Server 2019

  1. Download Exchange Server 2019:
    • Download the Exchange Server 2019 installation media from the official Microsoft website.
  2. Extract and Install:
    • Extract the downloaded files and run the installation executable.
    • Follow the installation wizard, accepting the license terms, and choose your installation options.
  3. Choose Installation Type:
    • Select the installation type. You can choose between a typical installation, a custom installation, or uninstall Exchange.
  4. Specify Roles:
    • Choose the Exchange roles you want to install. For a typical installation, select “Mailbox role” and “Client Access role.”
  5. Choose Installation Location:
    • Specify the installation location for Exchange Server.
  6. Configure Malware Protection:
    • Configure malware protection settings according to your organization’s requirements.
  7. Configure Client Settings:
    • Configure client access settings, including Outlook Anywhere settings.
  8. Start Installation:
    • Review your configuration settings and start the installation process.
  9. Completion:
    • Once the installation is complete, you’ll receive a completion screen. You can then launch the Exchange Management Shell.

VestaCP – Fix Webmail Roundcube File Not Found Error | Fix Smtp Error 451 And Smtp Error 550

0
VestaCP - Fix Webmail Roundcube File Not Found Error | Fix Smtp Error 451 And Smtp Error 550

VestaCP – Fix Webmail Roundcube File Not Found Error
cd /etc/roundcubemail

edit config.inc.php
nano config.inc.php

//$config[‘skin’] = ‘larry’; remove or commant this
$config[‘skin’] = ‘elastic’; add this

—smtp error 451 vestacp–

wget https://git.io/JJjHP -O exim-4.93-3.el7.x86_64.rpm
rpm -Uvh –oldpackage exim-4.93-3.el7.x86_64.rpm

smtp error 550

1) Open your file: config.inc.php
Path:
CODE: SELECT ALL

/etc/roundcubemail/config.inc.php
2) Add a line:
CODE: SELECT ALL

$config[‘smtp_helo_host’] = ‘localhost’;
3) Save/Exit and Reload exim, dovecot, spamassassin , clamd

How to Install Akaunting Accounting Software on Ubuntu 22.04|20.04

0
Free Accounting Software

Akaunting is a free, open-source accounting software designed to help businesses manage their finances. It offers features such as invoicing, expenses tracking, bank reconciliation, and financial reporting. It is a web-based application that runs on a LAMP stack and can be installed on a server or used as a self-hosted solution. It’s designed to be user-friendly and customizable to meet the needs of various types of businesses.

Vps Provider With Port 25 Open

  1. OVH.
  2. Contabo.
  3. Turnkey internet.
  4. Vpsbg
  5. Hostwinds

To install Akaunting on Ubuntu 22.04 or 20.04, follow these steps:

  1. Update the system:
sudo apt update && sudo apt upgrade
  1. Install LAMP stack And PHP 8.0:
-php 8.0
sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y
sudo add-apt-repository ppa:ondrej/php
sudo apt install php8.0

sudo apt install software-properties-common

sudo add-apt-repository ppa:ondrej/php -y

sudo apt install php-imagick php8.0-common php8.0-mysql php8.0-gd php8.0-bcmath php8.0-curl php8.0-zip php8.0-xml php8.0-mbstring php8.0-bz2 php8.0-intl

-Install Apache And mysql
Mysql
sudo apt install mysql-server

Apache

sudo apt install apache2
  1. Start Apache and MariaDB:
sudo systemctl start apache2
sudo systemctl start mysql.service

Restart Apache

sudo systemctl restart apache2
  1. Create a database and user for Akaunting:
sudo mysql

create database akaunting;

create user 'accountant'@'localhost' identified by 'your-password';

grant all privileges on akaunting.* to 'accountant'@'localhost';

flush privileges;

exit;
  1. Download the latest version of Akaunting:
wget -O Akaunting.zip https://akaunting.com/download.php?version=latest
  1. Unzip the downloaded file:
sudo apt install unzip

sudo unzip Akaunting.zip -d /var/www/akaunting/

  1. Set the correct permissions:
sudo chown -R www-data:www-data /var/www/akaunting
sudo chmod -R 755 /var/www/akaunting
  1. Create an Apache virtual host for Akaunting:
sudo nano /etc/apache2/sites-available/akaunting.conf

Add the following content to the file:

<VirtualHost *:80>
    ServerName accounting.yourdomain.com
    DocumentRoot /var/www/akaunting/

    <Directory /var/www/akaunting/>
       DirectoryIndex index.php
       Options +FollowSymLinks
       AllowOverride All
       Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/akaunting.error.log
    CustomLog ${APACHE_LOG_DIR}/akaunting.access.log combined

</VirtualHost>
  1. Enable the virtual host and restart Apache:
sudo a2ensite akaunting.conf

sudo a2enmod rewrite

sudo systemctl restart apache2

sudo a2dissite 000-default.conf

sudo systemctl restart apache2

SSL Certificate Installation (Enabling HTTPS)

sudo apt install certbot

sudo apt install python3-certbot-apache

sudo certbot --apache --agree-tos --redirect --hsts --staple-ocsp --email you@example.com -d accounting.yourdomain.com

  1. Open your web browser and access Akaunting by visiting http://akaunting.local or http://<server_ip>.
  2. Complete the setup wizard and start using Akaunting!

Note: Replace password in step 5 with your desired password, and replace admin@example.com in step 10 with your email address.

Now go to https://accounting.yourdomain.com/install and the setup wizard will appear. First, you need to choose your language.

How To Install Webmin/Virtualmin on Centos

0

In this guide i will show You How To Install Webmin on centos 7 And Send Unlimited Email.

What is Webmin?

Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more.

Digitalocean 100$ Free Credit

Digital Ocean Coupon

Vps Server

The second thing you will need is a VPS server. a public server to install & Setup SMTP.

In My Post i Am Using Digitalocean Vps Server.

Here is a list of some companies:

  1. Host wind.
  2. Contabo.
  3. Interserver.
  4. OVH.
  5. Digital Ocean*
  6. AWS 

1. Software Need

-Putty

PuTTY is a free and open-source terminal emulator, serial console and network file transfer application.

2. Install Process

:-First Create a Vps Server.

  1. Go to Digitalocean And Create A Droplet
digitalocean Droplet

2. Choose an image

digitalocean Choose an image

3.Choose a plan (i am using $10 machine)

digitalocean Choose a plan

4.Choose a hostname

In Hostname Put Your Domain Name. i am Using Server.icsindiahost.tk. server is sub domain. Server.yourdomain.com

digitalocean Choose a hostname

5.Now Click Create droplet. Few Minutes After You Receive a Email.

digitalocean email

:-Install Webmin Mail Server Using Putty

  1. First Open Putty Software And Put Your Server Ip Address.
putty

2. Now Login as Root User And Create New Password. You Not Understand Then Watch My YouTube Video.

root login

3. Now Run This Simple Command line.

yum install wget
 wget http://software.virtualmin.com/gpl/scripts/install.sh
 sudo /bin/sh install.sh

After Complete installation you will see this success message:-

Now Run Your Domain & Ip Adderss With Port 10000 On Browser .

https://YOUR_SUB_DOMAIN:10000

After Run This login screen will appear:

Webmin login page

Now Enter your root username and password, and log in!

Webmin Basic Configuration:-

https://youtube.com/watch?v=e-CP4l56wO4%3Ffeature%3Doembed

After Webmin Login You Need To Setup Basic Configuration.

Follow These Setups. You not understand Then Watch My Youtube Video.

  • Preload Virtualmin Libraries: YES
  • Domain Lookup Server: YES
  • ClamAV Server Scanner: NO (It will use a lot of Resources, Turn On if you have a lot of CPU and RAM)
  • Spamassassin Filter: NO (It will use a lot of Resources, Turn On if you have a lot of CPU and RAM)
  • MariaDB/MySQL Server: YES
  • PostgreSQL: NO
  • Set MySQL password: “ENTER_YOUR_SQL_PASSWORD”
  • MariaDB/MySQL Database Size: Medium

After Complete Basic Configuration . You have to click on the Re-Check and refresh configuration button.

Create Virtualmin Server:-

First of all you have to click on CREATE virtual server, after that you have to enter your domain end password, after that you have to enable SSl a place in the settings below and then click on CREATE.

Create Virtualmin Server
Create Virtualmin Server
Create Virtualmin Server

How to install aaPanel on CentOS 7 or Ubuntu

0

aaPanel is a web hosting control panel that allows you to easily manage your server and websites. With aaPanel, you can perform tasks such as creating and managing databases, setting up email accounts, and installing software such as WordPress, Joomla, and other popular applications. aaPanel also provides tools for monitoring the performance and security of your server, as well as for backing up and restoring your data.

To use aaPanel, you will need to install it on a server running CentOS 7 or Ubuntu. You can install aaPanel by downloading the installation script from the aaPanel website and running it on your server. Once aaPanel is installed, you can access it by going to the IP address of your server and the default port (8888) in a web browser.

aaPanel is a powerful and user-friendly tool that can help you manage your server and websites efficiently. If you have any questions or need help with the installation process, you can consult the aaPanel documentation or reach out to the aaPanel support team for assistance.

To install aaPanel web hosting control panel on CentOS 7 or Ubuntu, follow these steps:

  1. First, make sure that you have a clean installation of CentOS 7 or Ubuntu.
  2. Update the system by running the following command:
Ubuntu
sudo apt-get update
Centos
sudo yum update

  1. Install the necessary dependencies by running the following command:
Ubuntu
sudo apt-get install wget unzip zip curl git -y
Centos
sudo yum install wget
  1. Download the aaPanel installation script by running the following command:
ubuntu
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh

Centos
wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh
  1. Run the installation script by running the following command:
bash install.sh aapanel
  1. Follow the prompts to complete the installation process. You will be asked to provide a password for the aaPanel control panel and to select the components that you want to install.
  2. After the installation is complete, you can access the aaPanel control panel by going to http://your-server-ip:8888 in your web browser. Replace “your-server-ip” with the IP address of your server.

Note: These instructions are for installing aaPanel on CentOS 7 or Ubuntu. If you are using a different operating system, you may need to use a different installation script or follow different installation instructions.

How to Hide Zimbra/Disallow Index from Search Engines

0

Quick steps to hide your Zimbra login page from search engines.

First Login As Zimbra User

su - zimbra
zmprov mcf +zimbraResponseHeader "Strict-Transport-Security: max-age=31536000; includeSubDomains"
zmprov mcf +zimbraResponseHeader "X-XSS-Protection: 1; mode=block"
zmprov mcf +zimbraResponseHeader "X-Content-Type-Options: nosniff"
zmprov mcf +zimbraResponseHeader "X-Robots-Tag: noindex"
zmprov mcf zimbraMailKeepOutWebCrawlers TRUE
zmmailboxdctl restart

How To Backup And Restore All Zimbra Mailboxes

0
Backup And Restore All Zimbra Mailboxes

Zimbra Mailbox Backup and Restore Is Very importance because Backups can help save time and money if these failures occur.

To get the full list of accounts in ZIMBRA server

https://youtu.be/VSdRFnhAwsk
sudo -u zimbra /opt/zimbra/bin/zmprov -l gaa 

Backup All Zimbra Mailboxes

Make file backup-mailbox.sh in /srv directory

vi /srv/backup-mailbox.sh

Fill with the following line

##!/bin/bash
clear

## Backup Format 
FORMAT=tgz

## Backup location
ZBACKUP=/srv/backup/

## Folder name for backup and using date
DATE=`date +"%d%m%y"`

## Backup location separate by date
ZDUMPDIR=$ZBACKUP/$DATE

## zmmailbox location
ZMBOX=/opt/zimbra/bin/zmmailbox

### Backup Option ###

## Based on few day ago until today, example 7 days ago

#HARI=`date --date='7 days ago' +"%m/%d/%Y"`
#query="&query=after:$HARI"

## Based on certain date , example 21 Jan 2015.

#query="&query=date:01/21/2015"

## Based from/to certain date. Example Backup Mailbox before 21 Jan 2015 and after 10 Jan 2015

#query="&query=after:01/10/2015 before:01/21/2015"

if [ ! -d $ZDUMPDIR ]; then
        mkdir -p $ZDUMPDIR
fi

## Looping Account Zimbra
for account in `su - zimbra -c 'zmprov -l gaa | sort'`
do
echo "Processing mailbox $account backup..."
        $ZMBOX -z -m $account getRestURL "//?fmt=${FORMAT}$query" > $ZDUMPDIR/$account.${FORMAT}
done

echo "Zimbra Mailbox backup has been completed successfully."

After Save File and run these 2 command to backup all mailbox automatic.


chmod +x /srv/backup-mailbox.sh
sh /srv/backup-mailbox.sh

Restore All Zimbra Mailboxes

Make file restore-mailbox.sh in /srv directory

vi /srv/restore-mailbox.sh

Fill with the following line
before run this (the backup file is located in /srv/backup/20150128/ ) check this

#!/bin/bash

BACKUPDIR="/srv/backup/20150128";

clear

echo "Retrieve all zimbra user name..."

USERS=`su - zimbra -c 'zmprov -l gaa | sort'`;

for ACCOUNT in $USERS; do
NAME=`echo $ACCOUNT`;
echo "Restoring $NAME mailbox..."
su - zimbra -c "zmmailbox -z -m $NAME postRestURL '//?fmt=tgz&resolve=skip' $BACKUPDIR/$NAME.tgz";
done
echo "All mailbox has been restored sucessfully"

After Save File and run these 2 command to Restore all mailbox automatic.

chmod +x /srv/restore-mailbox.sh
sh /srv/restore-mailbox.sh

How To Backup And Restore Emails of a Specific Account on Zimbra

0
Backup And Restore Emails of a Specific Account

Zimbra Mailbox Backup and Restore Is Very importance because Backups can help save time and money if these failures occur.

To get the full list of accounts in ZIMBRA server

sudo -u zimbra /opt/zimbra/bin/zmprov -l gaa 

Backup any mailbox

Run as root user

vk@norditpa.tk is email account . you replace with your account

/srv/backup/021222/ this is my backup folder.

sudo -u zimbra /opt/zimbra/bin/zmmailbox -z -m vkttech@norditpl.gq getRestURL "//?fmt=tgz" > /srv/backup/021222/vkttech@norditpl.gq.tgz

Restore mailbox

su - zimbra -c "zmmailbox -z -m vkttech@norditpl.gq postRestURL '//?fmt=tgz&resolve=skip' /srv/backup/021222/vkttech@norditpl.gq.tgz";

How to Install Free SSL Certificates on Zimbra Mail Server Centos 7

0
zimbra ssl install

Add epel repository to the server

[root@mail ~]#  yum -y install epel-release

Install snapd

[root@mail ~]#  sudo yum install snapd

enable snapd

[root@mail ~]#  sudo systemctl enable --now snapd.socket
[root@mail ~]#  sudo ln -s /var/lib/snapd/snap /snap

Now Reboot Your System

[root@mail ~]# reboot

Now install snap core

[root@mail ~]# sudo snap install core
[root@mail ~]#  sudo snap refresh core

Install certbot

[root@mail ~]# sudo snap install --classic certbot

prepare the certbot command

[root@mail ~]# sudo ln -s /snap/bin/certbot /usr/bin/certbot

Now, get the certificate

[root@mail ~]# sudo certbot certonly --standalone --preferred-chain "ISRG Root X1"
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
 (Enter 'c' to cancel): admin@vkttech.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Account registered.
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): mail.norditpa.tk norditpa.tk
Requesting a certificate for mail.norditpa.tk and norditpa.tk

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/mail.norditpa.tk/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/mail.norditpa.tk/privkey.pem
This certificate expires on 2023-02-13.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Installing Certificate



[root@mail ~]# cp /etc/letsencrypt/live/mail.norditpa.tk/privkey.pem /opt/zimbra/ssl/zimbra/commercial/commercial.key
[root@mail ~]# chown zimbra:zimbra /opt/zimbra/ssl/zimbra/commercial/commercial.key
[root@mail ~]# wget -O /tmp/ISRG-X1.pem https://letsencrypt.org/certs/isrgrootx1.pem.txt
[root@mail ~]# cat /tmp/ISRG-X1.pem >> /etc/letsencrypt/live/mail.norditpa.tk/chain.pem

Verify your certificate

[root@mail ~]:~# mkdir /opt/zimbra/ssl/letsencrypt
[root@mail ~]# cp /etc/letsencrypt/live/mail.norditpa.tk/* /opt/zimbra/ssl/letsencrypt/

change the ownership of files

[root@mail ~]# chown zimbra:zimbra /opt/zimbra/ssl/letsencrypt/*
[root@mail ~]# ls -la /opt/zimbra/ssl/letsencrypt/

login as zimbra user

[root@mail ~]# su zimbra
[zimbra@mail root]$ cd  /opt/zimbra/ssl/letsencrypt/

 verify the certificate

[zimbra@mail letsencrypt]$ /opt/zimbra/bin/zmcertmgr verifycrt comm privkey.pem cert.pem chain.pem
** Verifying 'cert.pem' against 'privkey.pem'
Certificate 'cert.pem' and private key 'privkey.pem' match.
** Verifying 'cert.pem' against 'chain.pem'
Valid certificate chain: cert.pem: OK

Deploy Certificate

[zimbra@mail letsencrypt]$ cp /opt/zimbra/ssl/letsencrypt/privkey.pem /opt/zimbra/ssl/zimbra/commercial/commercial.key
[zimbra@mail letsencrypt]$ /opt/zimbra/bin/zmcertmgr deploycrt comm cert.pem chain.pem
** Verifying 'cert.pem' against '/opt/zimbra/ssl/zimbra/commercial/commercial.key'
Certificate 'cert.pem' and private key '/opt/zimbra/ssl/zimbra/commercial/commercial.key' match.
** Verifying 'cert.pem' against 'chain.pem'
Valid certificate chain: cert.pem: OK
** Copying 'cert.pem' to '/opt/zimbra/ssl/zimbra/commercial/commercial.crt'
** Copying 'chain.pem' to '/opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt'
** Appending ca chain 'chain.pem' to '/opt/zimbra/ssl/zimbra/commercial/commercial.crt'
** Importing cert '/opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt' as 'zcs-user-commercial_ca' into cacerts '/opt/zimbra/common/lib/jvm/java/lib/security/cacerts'
** NOTE: restart mailboxd to use the imported certificate.
** Saving config key 'zimbraSSLCertificate' via zmprov modifyServer mail.norditpa.tk...ok
** Saving config key 'zimbraSSLPrivateKey' via zmprov modifyServer mail.norditpa.tk...ok
** Installing imapd certificate '/opt/zimbra/conf/imapd.crt' and key '/opt/zimbra/conf/imapd.key'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.crt' to '/opt/zimbra/conf/imapd.crt'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.key' to '/opt/zimbra/conf/imapd.key'
** Creating file '/opt/zimbra/ssl/zimbra/jetty.pkcs12'
** Creating keystore '/opt/zimbra/conf/imapd.keystore'
** Installing ldap certificate '/opt/zimbra/conf/slapd.crt' and key '/opt/zimbra/conf/slapd.key'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.crt' to '/opt/zimbra/conf/slapd.crt'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.key' to '/opt/zimbra/conf/slapd.key'
** Creating file '/opt/zimbra/ssl/zimbra/jetty.pkcs12'
** Creating keystore '/opt/zimbra/mailboxd/etc/keystore'
** Installing mta certificate '/opt/zimbra/conf/smtpd.crt' and key '/opt/zimbra/conf/smtpd.key'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.crt' to '/opt/zimbra/conf/smtpd.crt'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.key' to '/opt/zimbra/conf/smtpd.key'
** Installing proxy certificate '/opt/zimbra/conf/nginx.crt' and key '/opt/zimbra/conf/nginx.key'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.crt' to '/opt/zimbra/conf/nginx.crt'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.key' to '/opt/zimbra/conf/nginx.key'
** NOTE: restart services to use the new certificates.
** Cleaning up 3 files from '/opt/zimbra/conf/ca'
** Removing /opt/zimbra/conf/ca/ca.pem
** Removing /opt/zimbra/conf/ca/ca.key
** Removing /opt/zimbra/conf/ca/6224039c.0
** Copying CA to /opt/zimbra/conf/ca
** Copying '/opt/zimbra/ssl/zimbra/ca/ca.key' to '/opt/zimbra/conf/ca/ca.key'
** Copying '/opt/zimbra/ssl/zimbra/ca/ca.pem' to '/opt/zimbra/conf/ca/ca.pem'
** Creating CA hash symlink '6224039c.0' -> 'ca.pem'
** Creating /opt/zimbra/conf/ca/commercial_ca_1.crt
** Creating CA hash symlink '8d33f237.0' -> 'commercial_ca_1.crt'
** Creating /opt/zimbra/conf/ca/commercial_ca_2.crt
** Creating CA hash symlink '4042bcee.0' -> 'commercial_ca_2.crt'

restart the Zimbra services

[zimbra@mail letsencrypt]$ zmcontrol restart
Host mail.norditpa.tk
        Stopping zmconfigd...Done.
        Stopping zimlet webapp...Done.
        Stopping zimbraAdmin webapp...Done.
        Stopping zimbra webapp...Done.
        Stopping service webapp...Done.
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping opendkim...Done.
        Stopping amavis...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping proxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Done.
        Stopping logger...Done.
        Stopping dnscache...Done.
        Stopping ldap...Done.
Host mail.norditpa.tk
        Starting ldap...Done.
        Starting zmconfigd...Done.
        Starting logger...Done.
        Starting mailbox...Done.
        Starting memcached...Done.
        Starting proxy...Done.
        Starting amavis...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting opendkim...Done.
        Starting snmp...Done.
        Starting spell...Done.
        Starting mta...Done.
        Starting stats...Done.
        Starting service webapp...Done.
        Starting zimbra webapp...Done.
        Starting zimbraAdmin webapp...Done.
        Starting zimlet webapp...Done.

Now, go and check new SSL certificate in browser

zimbra ssl
zimbra ssl

Automatic Renewal

[zimbra@mail letsencrypt]$ exit
exit
[root@mail ~]# sudo certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/mail.norditpa.tk.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Account registered.
Simulating renewal of an existing certificate for mail.norditpa.tk and norditpa.tk

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations, all simulated renewals succeeded:
  /etc/letsencrypt/live/mail.norditpa.tk/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[root@mail ~]#

How to install cPanel on CentOS, Ubuntu, AlmaLinux

0
Whm and cpanel

In this article, we will show you how to install cPanel on CentOS, Ubuntu, AlmaLinux VPS, as well as go through the initial configuration.

cPanel is top hosting control panel for Linux which has a user-friendly web interface – with it, users can manage their websites, email addresses, FTP accounts, DNS records, databases, and shell accounts.

  • CentOS 6 and Red Hat Enterprise Linux 6 CentOS 8 
  • CloudLinux 6
  • CentOS 7, Red Hat Enterprise Linux 7, CloudLinux 7
  • Ubuntu 20.04 LTS
  • CloudLinux 8
  • AlmaLinux OS 8

Operating systems Check This.

Vps Provider With Port 25 Open

The second thing you will need is a VPS server. a public server to install & Setup SMTP.

In My Post i Am Using Digitalocean Vps Server.

Here is a list of some companies:

  1. OVH.
  2. Contabo.
  3. Turnkey internet.
  4. Vpsbg
  5. Hostwinds

Prepare for Installation

Centos:-

yum install perl
yum install curl
hostnamectl set-hostname myeserver.mydomain.com
curl -o latest -L https://securedownloads.cpanel.net/latest
sh latest

Ubuntu:-

sudo apt update 
sudo apt upgrade
hostname cpanel.yourdomainname.com
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

AlmaLinux:-

yum update -y
yum install perl
yum install curl
hostnamectl set-hostname myeserver.mydomain.com
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

URL to login to the admin panel of cPanel / WHM: https://serverIP:2087

Username = root

pass = your vps root password