Warning: Redis::get(): php_network_getaddresses: getaddrinfo for localhost failed: Name or service not known in /home/solveddoc.com/public_html/wp-content/plugins/litespeed-cache/src/object-cache.cls.php on line 674
Home - Page 13 of 15 - Solveddoc

How to set up Google Drive Backup on CyberPanel?

CyberPanel has a great feature to add Google Drive backups. They added this feature in their 2.0.2 version.

This G-Drive backup option makes the backup process easy and more reliable. The method to set up Google drive Backup is also so easy. there is nothing typical or complex.

You can follow this guide to add Google drive backup through CyberPanel.

Table Of Contents:

Login To CyberPanel:

To initiate this process you must have to log in to the CyberPanel. So use your CyberPanel credentials to log in.

Login To CyberPanel:

Set Up Google Drive Backup:

Now go to Back Up->Setup Google Drive to set up google drive backup for your site.

Set Up Google Drive Backup:

Set Up new Account

Here you can see the SETUP NEW ACCOUNT click that button to add a google drive account for backup.

Set Up new Account

You can see a Pop up asking for the name of the account you want to set up for your g-drive backup.

You can see a Pop up asking for the name of account you want to setup for your g-drive backup.

Enter your name here and then click the Save button. This will migrate you to a new screen for Google account setup.

Select any account if you are logged in or add a new one here

Select any account if you are logged in or add a new one here

Now click the Allow button to processed.

Now click the Allow button to processed.

Once it’s done now you will get back to the backup page. and you can select that account you just added.

Add Sites For Backup:

Now you can add backups for your sites from this screen. Select account from here.

Now you can add backups for your sites from this screen. Select account from here.

Now provide the details and Press the Add button then you can see the Site added below.

Press Add Site

Now provide the details and Press the Add button than you can see the Site added below.

Read More: Access Cyberpanel Via Hostname with SSL- Issue SSL for Hostname

Access Cyberpanel Via Hostname with SSL- Issue SSL for Hostname

DO you want to access CyberPanel via a hostname with valid SSL ?

By default, you can access your cyber panel using the IP of your server and Port 8090. But For a valid SSL certificate, you must need a valid domain to access cyber panel with a valid SSL.

In this article, we will discuss how you can select a hostname and then issue SSL for that. So follow all steps along to access Cyberpanel Via Hostname with SSL.

Table of Content:

  1. Select a Valid Domain
  2. Create a Website on CyberPanel
  3. Issue SSL for HostName
  4. Access Cyberpanel

Select a Valid Domain

To access CyberPanel through a hostname and valid SSL first you need a domain through which you want to access CyberPanel. Like you want to use https://domian.com:8090 to access your CyberPanel you need to add domain.com to your CyberPanel.

Before creating a domain make sure that your DNS A records are point this server where you want to add a domain.

Create a Website on CyberPanel

To do so login to your CyberPanel using your Credentials then go to Websites->Create Website :

Create a Website on CyberPanel

Now provide all the required details and press Create Website button.

Now provide all the required details and press Create Website button.

Now your required website is created. SSL may be working for this domain But we need to issue for the Hostname and select this domain as the hostname.

Issue SSL for HostName:

Go to the SLL->Hostname SSL

Issue SSL for HostName:

Now select that domain you want to use for the Hostname. Then Press the Issue SSL.

Now select that domain you want to use for the Hostname. Then Press the Issue SSL.

This domain has now SSL for hostname you can use this to access cyberpanel

Access Cyberpanel:

Now it’s time to check that is this domain is working to access the CyberPanel. Go to your brewers and visit the Link https://your-domain.com:8090 it should work for your Hostname now you can access CyberPanel using this link.

Read More: How to set up Google Drive Backup on CyberPanel?

How to change Upload Limit on CyberPanel? Increase or decrease Upload Size through CyberPanel?

CyberPanel is a Webhosting control panel. If you want to upload a file of large size and you are unable to do so. So here I will tell you how to change the Maximum upload file size.

Sometimes you want to import a database of large size or you want to upload an image or file on your size of large size and then you receive an error that you cant upload a file more than 2M (2M is the default size for the post in CyberPanel).

Here I will tell you how you can increase the Max upload limit for post and file. You can also change different things like maximum execution time, max input time, etc.

Follow all the steps to change Upload Limit.

Follow all the steps to change Upload Limit.
  1. Login to your CyberPanel using your credentials.
Login to your CyberPanel using your credentials.

2. Now go to the PHP->Edit PHP Configs

2. Now go to the PHP->Edit PHP Configs

3. You can see the Basic and Advanced buttons here. Remain on Basic and Select your required PHP version from here.

3. You can see Basic and Advanced button here. Remain on Basic and Select your required PHP version from here.

4. Once you select the required version you can see the different option here

4. Once you select the required version you can see the different option here

Here you can update the values for all fields according to your requirements. You can update values here Like Max uploads size, max execution time, Post size, etc.

After updating values you need to click the save button to save all changes .

In the last steps, you need to restart PHP in the latest version of CyberPanel they give the option of restart in the Panel. Below the configuration. But if you are on the old version you have to restart PHP.

Without restarting PHP the changes will never applied.

Read More: Access Cyberpanel Via Hostname with SSL- Issue SSL for Hostname

React Native adMob | Seamless & Fast Google AdMob Integration

Do you want to integrate your AdMob to React Native Application? Here we will learn about React Native adMob integration.

If you want to earn from your React Native Applications you need to integrate AdMob with your React Native Application. So Google AdMobs helps you to earn from your applications.

Mostly React Native Packages are installed using a single command. In this article, i will tell you the simplest way to install, Integrate, and use AdMob in your React native application.

Create AdMob Account:

First of all you must have a AdMob account. Go to this Article and check how you can create Admob account. The process of creating Admob account is very straight and simple. In this Article All steps are mentioned and described briefly.

How to Install React Native AdMob:

For the integration of Admob react native first of all we have to Install React native AdMob in your project its is very easy to do so here we discuss the steps :

There are different packages to integrate Admob with your React Native Project but here I discuss that one which I personally use and I think have easy integration than Others.

React-native-admob is bossily a react-native module for Google AdMob Banners, Interstitials, and Rewarded Videos, and also DFP Banners. To install this module Run the command stated below.

npm i @talaikis/react-native-admob

In older versions of React native, you need to configure this module manually but now This fork is a working version for RN 0.60+. Don’t link this package, auto-linking works fine. No need to do extra linking at all.

Open your already created application and install this module using the line stated above.

React Native adMob | How to Integrate Google AdMob?
Open your already created application and install this module using the line stated above.

Once installation process is done. Nothing to do other than this.

React native AdMob Types:

React native AdMob Allows four types of Ads units for its user:

AdMobBanner,

AdMobBanner is the Banner Add for your Application you can add it as sticky location on at any place on any page of your applicatio.

To read more about this click here.

Usage

import {
  AdMobBanner,
 } from 'react-native-admob'

// Display a banner
<AdMobBanner
  adSize="fullBanner"
  adUnitID="your-admob-unit-id"
  testDevices={[AdMobBanner.simulatorId]}
  onAdFailedToLoad={error => console.error(error)}
/>

AdMobInterstitial,

This type of React-native AdMob has imperative API. You can use this at any function call.

To ready more Click Here.

Usage

import {
  AdMobInterstitial
} from '@talaikis/react-native-admob';

  componentDidMount() {
  AdMobInterstitial.setTestDevices([AdMobInterstitial.simulatorId]);
  AdMobInterstitial.setAdUnitID('ca-app-pub-your_ad-uint');

  AdMobInterstitial.addEventListener('adLoaded', () =>
    console.log('AdMobInterstitial adLoaded'),
  );
  AdMobInterstitial.addEventListener('adFailedToLoad', error =>
    console.warn(error),
  );
  AdMobInterstitial.addEventListener('adOpened', () =>
    console.log('AdMobInterstitial => adOpened'),
  );
  AdMobInterstitial.addEventListener('adClosed', () => {
    console.log('AdMobInterstitial => adClosed');
    AdMobInterstitial.requestAd().catch(error => console.warn(error));
  });
  AdMobInterstitial.addEventListener('adLeftApplication', () =>
    console.log('AdMobInterstitial => adLeftApplication'),
  );

  AdMobInterstitial.requestAd().catch(error => console.warn(error));
}

componentWillUnmount() {
  AdMobInterstitial.removeAllListeners();
}



showInterstitial() {
  AdMobInterstitial.showAd().catch(error => console.warn(error));
}

  componentWillUnmount() {
    AdMobRewarded.removeAllListeners();
  }

PublisherBanner,

This is just Like AdMobBanner with the addition of 2 extra properties:

Click here for more details:

Usage:

import {
  PublisherBanner,
  } from 'react-native-admob'
 
 <PublisherBanner
  adSize="fullBanner"
  adUnitID="your-admob-unit-id"
  testDevices={[PublisherBanner.simulatorId]}
  onAdFailedToLoad={error => console.error(error)}
  onAppEvent={event => console.log(event.name, event.info)}
/>

AdMobRewarded,

In comparison to the AdMobBanner and PublisherBanner which have a declaritive API, the AdMobRewarded has an imperative API, just like the AdMobInterstitial.

Click Here to read more:

Usage:

import {
  AdMobRewarded,
  } from 'react-native-admob';
 

componentDidMount() {
  AdMobRewarded.setTestDevices([AdMobRewarded.simulatorId]);
  AdMobRewarded.setAdUnitID('your ad unit');

  AdMobRewarded.addEventListener('rewarded', reward =>
    console.log('AdMobRewarded => rewarded', reward),
  );
  AdMobRewarded.addEventListener('adLoaded', () =>
    console.log('AdMobRewarded => adLoaded'),
  );
  AdMobRewarded.addEventListener('adFailedToLoad', error =>
    console.warn(error),
  );
  AdMobRewarded.addEventListener('adOpened', () =>
    console.log('AdMobRewarded => adOpened'),
  );
  AdMobRewarded.addEventListener('videoStarted', () =>
    console.log('AdMobRewarded => videoStarted'),
  );
  AdMobRewarded.addEventListener('adClosed', () => {
    console.log('AdMobRewarded => adClosed');
    AdMobRewarded.requestAd().catch(error => console.warn(error));
  });
  AdMobRewarded.addEventListener('adLeftApplication', () =>
    console.log('AdMobRewarded => adLeftApplication'),
  );

  AdMobRewarded.requestAd().catch(error => console.warn(error));

  

}

componentWillUnmount() {
  AdMobRewarded.removeAllListeners();
}

showRewarded() {
  AdMobRewarded.showAd().catch(error => console.warn(error));
}

How to change Upload Limit on CyberPanel? Increase or decrease Upload Size through CyberPanel?

Read about CyberPanel Features List.

Here you can read How to log in to the Rainloop admin dashboard?

Read More: How to Change Upload limit On CyberPanel?

How to Change Upload limit On CyberPanel?

You can follow us on Facebook too.

How to create, delete and manage Child Domains in CyberPanel?

You can easily create, List and delete child domains in CyberPanel.

Here I tell you how to create a Subdomain or child domain in CyberPanel and how to delete a child domain from CyberPanel. You can easily manage your subdomains or child domains using cyberpanel.

From CyberPanel you can perform many things for your child domain like create, List, Delete, Issue SSL, Change PHP version, install application, create ftp account, and many more.

How to create a child domain in CyberPanel?

There are two methods to create a subdomain in CyberPanel. But here i will discuss the one which is specific for the child domain creation. The other method is same as the normal domain creation.

Follow these steps to create a sub domain in CyberPanel.

1: Login to your CyberPanel and go to Websites->List Website-> Manage. You can also navigate to this link

https://<Your_IP>:8090/websites/yourdomain.com
1: Login to your CyberPanel and go to Websites->List Website-> Manage. You can also navigate to this link

2: Now go to the DOMAINS section here and Press Add Domains.

2: Now go to the DOMAINS section here and Press Add Domains.

3: Now provide all information here and press Create domain button

3: Now provide all information here and press Create domain button

you can see the progress and a short time it will show you the completion massage.

How to Delete a child domain in CyberPanel?

In first part we are able to know how to create a child or subdomain in cyberpanel. Sometime we need to delete subdomain. So in this part we will discuss this.

1: Login to your CyberPanel and go to Websites->List Website-> Manage. You can also navigate to this link

1: Login to your CyberPanel and go to Websites->List Website-> Manage. You can also navigate to this link

2: Now go to the DOMAINS section here and Press List Domains. You can see the Subdomains in front of that you can see the Delete button press that to delete the subdomain.

Now go to the DOMAINS section here and Press List Domains.

it will take sometime and after that you can it disappears from here.

How to manage Subdomain SSL of in CyberPanel?

You can issue SSL to any subdomain in cyberpanel using two ways.

Issue SSL from child domain option:

This one is quick and easy way to issue SSL for any subdomain.

Just go to Websites->List Child Domains -> issue ssl

Websites->List Child Domains -> issue ssl

Issue SSL from parent website manage panel:

You can also manage the SSL for any subdomain by using this method.

1: Login to your CyberPanel and go to Websites->List Website-> Manage. You can also navigate to this link

Issue SSL from parent website manage pane

2: Now go to the DOMAINS section here and Press List Domains. You can see the Subdomains in front of that you can see the SSL button press that.

DOMAINS section here and Press List Domains

Change PHP version for child domain, Check logs, Install applications and other features:

You can also manage a lot of features for subdomains using cyberpanel. Just need to follow this Websites-> List Child Domains->Manage:

Websites-> List Child Domains->Manage:

Here you can manage a lot of features like you can change PHP version for your subdomain, you can install WordPress, you can create ftp account for subdomain and many more.

You can also use this path to manage these features:

https://<YOUR_IP>:8090/websites/YOURDOMAIN>COM/subdomain.YOURDOMAIN>COM
 change PHP version for your subdomain,

Access Cyberpanel Via Hostname with SSL- Issue SSL for Hostname

How to create a staging or clone of the WordPress site from CyberPanel?

Sometime you may need to create a clone or staging site of your WordPress site to make changes and test them. CyberPanel allows to create staging or clone site easily.

In this article, I will tell you how you can create a staging or clone of your WordPress site from CyberPanel.

You can create a staging site from CyberPanel and after doing that you can merge it back to the Original or master site.

Always keep backup before doing anything. So if you lost anything you can restore. The process of creating a staging site is very easy to follow along to do so.

Create a Clone or create a Staging for your site:

Step 1: Log in to CyberPanel and Go to Manage Website

Create a clone or staging site in cyberpanel is very easy. I will write the steps below to do so.

The first thing to do is login to your cyberpaner using your credentials on port 8090.

Then go to the Websites->List Websites->Manage

 login to your cyberpaner using your credentials on port 8090

Step 2: Create a clone or Staging site

In the manage Dashboard, you can see the CLONE/STAGING button press that to process.

Create a clone or Staging site

Add the Domain name which you want to use as staging or clone.

Add the Domain name which you want to use as staging or clone

It will take some time and once staging is done it will show you this screen.

It will take some time and once staging is done it will show you this screen

Now you must have to set A records for the staging domain you create Like staging.yourdomain.com. Visit your DNS manager and add A record for this staging site. No need to add any other records. A record is enough for staging.

In cyberpanel got to Websites->List Child Domains you can check the staging site.

Push back, Copy or sync site to Master:

Once you did all changes to staging and now you want to sync the staging back with the master site CyberPanel allows to do this very easy to do so follow steps:

Go to the Websites-> List Child Domains:

Now on this page, you can see your staging site press the Manage button in front of your site.

you can see your staging site press the Manage button in front of your site

Now you are in the management dashboard of the staging site. You can see COPY/SYNC TO MASTER from here you can push back your staging to the original.

You can see COPY/SYNC TO MASTER from here you can push back your staging to the original.

Here you can chose the options:

  1. Copy complete Data
  2. Sync Database
  3. Copy Changed Files
Copy complete Data

Chose any option from them according to your requirement. Once the process of sync or coping is done now go back to your original site and check the changes if you have any cache plugin clear cache and then check the changes.

How to set up Google Drive Backup on CyberPanel?

How to create a New User in CyberPanel?

CyberPanel is next generation hosting control panel. CyberPanel is powered by LiteSpeed Technologies.

In CyberPanel you can create new users easily and allow them access so they can manage their website settings there.

CyberPanel allow three types of user access ADMIN, USER, and RESALLER. You can easily create new account of any type according to the requirement of user.

How to create a new user account in CyberPanel:

The process of creating user, admin and reseller account is same i will tell you where the difference is during creation steps.

Login to your cyberpanel using port 8090.

Step 1:

In left menu go to Users-> CREATE NEW USER or navigate to this URL

https://<Yourip>:8090/users/createUser
Login to your cyberpanel using port 8090

Step 2:

Now Provide the information that need to create new user:

  1. First Name
  2. Last Name
  3. Email
  4. Select ACL ( admin, reseller, user)
  5. Websites Limit (Put 0 for unlimited)
  6. Username
  7. Password (Press Generate for strong)
  8. Security Level (High or Low)
Now Provide the information that need to create new user:

Here in Select ACL you can create the admin, user or reseller permissions. Admin has access for every thing, reseller has less access then admin and at last user has some specific access.

Step 3:

After providing these required information press create a user and user is created successfully now you can see your user by navigating to USERS->LIST USERS. Or visit this URL

https://<your ip>:8090/users/listUsers
you can see your user by navigating to USERS->LIST USERS. Or visit this URL

How to create a staging or clone of the WordPress site from CyberPanel?

How to Transfer the whole Website From one CyberPanel to Other CyberPanel using a backup method?

If you want to transfer your web site from one cyberpanel to any other cyberpanel without losing any data, you are on right place follow this article step by step.

If you are thinking to transfer your site from any other CyberPanel. Maybe you Changed your server. In this article, I will tell you how you can transfer your site from one Cyberpanel to another Cyberpanel. I will use the backup method to transfer the whole website from one CyberPanel to the second Cyberpanel.

Table of Contents:

  1. Create a Backup
  2. Set Permissions or Move Public_html
  3. Download to local Computer or Download on a remote server
  4. Move to the backup folder
  5. Restore Backup
  6. Check through the Host file.

Create a Backup:

To tranfer your website from CyberPanel to CyberPanel this methode is one of the simple and easy method. Follow along with me to setup:

  1. Login to your CyberPanel through your cyberpanel link like https://<your-ip>:8090: Provide credentials and press login.
Login to your CyberPanel

2. Now in the left menu bar Go to the Backup->Create Backup section. You can also navigate to this link. https://<your-ip>:8090/backup/backupSite

Now in the left menu bar Go to the Backup->Create Backup section.

Click on create back up button here.

3. Now cyberPanle asks you to select a site and the destination where the backup will store. The site for which you want to create a backup. Select your website, and leave the path as empty. And press Create back up button to start the backup creation process.

The site for which you want to create a backup

4. Now you can see the process of backup creation is running and in process.

 Now you can see the process of backup creation is running and in process.

wait until it will give you the massage Done. After creation you can see the massage of completed and can see a backup with its id on screen.

After creation you can see the massage of completed and can see a backup with its id on screen.

Done for backup process go to next step.

Set Permissions or Move Public_html:

If you are going to download files from cyber panel to a local computer then skip this step. Now in this step, you need to login to your SSH terminal. Using any software like putty or Bitvise. For this article, I am going to use Bitvise.

  1. Login to Bitvise SSH you must have credentials:
    1. Your server IP
    2. Username (root)
    3. Port number (22)
    4. Password
Login to Bitvise SSH you must have credentials

After providing all details press the Login button. Now open STFP to check and confirm the backup.

open STFP to check and confirm the backup

2. Now go to this path in sfpt

/home/yoursite/backup
go to this path in sfpt

Here you can use two method one is to change permissions and download this file directly from this path on the remote server and other is move it into the public_html and then download. Second one is recommended.

Change Permission:

Click on the file and the go to Properties->Permissions :

Click on the file and the go to Properties->Permissions

Change the permission to 777 as shown in picture. And press OK

Move to Public_html:

Type this command:

cp /home/yourdomain.com/backup/backupfilename home/yourdomain.com/public_html

Go and check the file.

Download to local Computer or Download on a remote server:

Now its time to download the file to the local pc or on another server in order to restore the backup. Make sure that the cyber panel is installed on this server.

Download to local computer and then upload:

This way is time taking way but if you dont have credentials fo SSH then go for this.

Go to the Websites->List website

Websites->List website

Press Manage button on the right side of website

Press Manage button on the right side of website

Press Manage button on the right side of website

Press Manage button on the right side of website

Go to the backup folder and Click the file and then click download you can see the file while downloading

click download you can see the file while downloading

Download Remotely using command:

Login to your SSH terminal and type this command if backupfile is in public_html folder:

wget yourdomain.com/backupfilename

If backup files are in back folder then type:

wget yourdomain.com/backup/backupfilename

Move to backup folder:

Now in order to restore Backup, you have to create a directory backup at home. use these commands to create a backup directory

cd /home
mkdir backup

Restore Backup:

Now its ite to restore backup for this log in to the new cyberpane.

  1. Go to the Backup->Restore backup:
Backup->Restore backup

Select the backup file that you placed inside the backup folder

2. Click start backup I will take some time to restore wait until backup is completed.

 I will take some time to restore wait until backup is completed.

Check through Host file:

At last step confirm that the backup is restored properly foe this open host file from your local computer.

  1. Write Notepad in search bar of window.
Write Notepad in search bar of window.

Open Notepad as administrator

Open Notepad as administrator

Now open the file host place in

C:\Windows\System32\drivers\etc
Now open the file host place in

Write your new ip and then press TAB then write your site

 press TAB then write your site

Go to your browser and visit your site is working or not.

How to set up Google Drive Backup on CyberPanel?

How to Setup Two Factor Authentication in CyberPanel?

Here i will tell you how you can setup Two Factor Authentication in cyberpanel?

In the latest version of cyberpanel they introduced the 2FA for login to cyberpanel. In the resent released version 2.0.3 this two factor authentication setup is introduced.

Now cyberpanel provide an extra layer of security for cyberpanel user. In this article I will tell you step by step how to setup 2FA in CyberPanel.

Table of contents:

  1. Setup 2FA in CyberPanel
  2. Test two factor Authentication by login

Setup 2FA in CyberPanel:

To setup 2FA in cyberpanel login to CyberPanel on port 8090 using your credentials.

Then navigate to Users-> Modify User:

Setup 2FA in CyberPanel

Press modify user and use can see screen that ask you to select a user for modification. Select any user from this page.

 modify user and use can see screen that ask you to select a user for modification

Click themodify user and use can see screen that ask you to select a user for modification.

 modify user and use can see screen that ask you to select a user for modification

You can see the authenticator

authenticator

Now go to download any two-factor authentication application and scan this code. For me, I used Google Authenticator. You can download it from here.

Google Authenticator

Now scan this code in your application and you will see a code on your screen.

Google Authenticator

After this press to Modify and save the settings.

Test two factor Authentication by login:

To test the two factor authentication what you need to do is log out from your account you enabled two factor authentication.

Test two factor Authentication by login:

Now you can see the login page provide the login details and press Sign in button:

login page provide the login details and press Sign in button

Now it will ask you Enter code from Google Authenticator. provide the code that you saved in google authenticator app and press Sign In.

Enter code from Google Authenticator

How to Transfer the whole Website From one CyberPanel to Other CyberPanel using a backup method?

How to Setup Catch-All Email Account in Postfix?

Do you want to catch-all emails in postfix? Does missing emails due to misspelling addresses bothered you? Then this article is for you.

A catch-all email account is used to get all emails sent from every email account of your domain. No matter that email account exists or someone misspelled that email. Catch-all is usually used when you do not want to lose any email due to the wrong email address or email that did not exist.

Here we discuss all steps that are needed to set up a catch-all email account in Postfix.

Follow along so you can easily setup and never miss any Email.

Create Catch All Account:

The first step is to create a catch-all account where you will receive all emails. Which are lost due to misspelling or non existing email?

To do so you have to add a virtual alias to the Postfix server. The path of file where you have to add the alias is /etc/postfix/virtual.

You have to edit this file in your favorite Editor I chose vi editor. Use this command to edit the file.

vi /etc/postfix/virtual
Setup Catch-All Email Account in Postfix

Now add the address for catch-all at the end of this file. Add the address like:

@yourdomain.com username

You can also specify any email account where you want to catch-all emails. You can specify different email account for this operation also. like:

Support@example.com Support@example.com
team@example.com  team@example.com
help@example.com help@example.com

If you didn’t specify the valid account then your valid account’s email will also go to that specific email you specify for catch-all. This account helps to Catch-all email that you miss due to non existing account or misspelled email addresses.

After adding these Alias to /etc/postfix/virtual save and exit.

After this we have to run a command to execute this file again.

postmap /etc/postfix/virtual

Now your updated file is loaded shift to next step.

Setup Postfix Configuration:

After editing the virtual file now its time to do some configurations in the postfix configuration file. In order to do this go to the file etc/postfix/main.cf. Edit this file in vi or any other editor you like. for vi use this command:

vi /etc/postfix/main.cf

you have to add virtual_alias_maps in this file add this line at the end of this main.cf file:

virtual_alias_maps = hash:/etc/postfix/virtual

Reload Postfix for new settings:

Now Postfix needs to reload so it can fetch the new settings. To reload postfix run the command:

systemctl reload postfix
systemctl reload postfix

Now all done good to go.

How to Setup Two Factor Authentication in CyberPanel?