<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>centos 8 how to tutorials Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/centos-8-how-to-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 14 Aug 2020 16:01:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Configuring Open vSwitch on CentOS &#124; RHEL &#124; Fedora</title>
		<link>https://www.osradar.com/configuring-open-vswitch-on-centos-rhel-fedora/</link>
					<comments>https://www.osradar.com/configuring-open-vswitch-on-centos-rhel-fedora/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 17 Aug 2020 08:00:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos 8 how to tutorials]]></category>
		<category><![CDATA[configure vswitch]]></category>
		<category><![CDATA[Configuring Open vSwitch on CentOS | RHEL | Fedora]]></category>
		<category><![CDATA[guide to vswtich]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[how to 2020]]></category>
		<category><![CDATA[vswitch installation on centos 8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20893</guid>

					<description><![CDATA[<p>Today we are going to learn that how to configure Open vSwitch on CentOS/RHEL. In our previous lecture you&#8217;ve learned that how to install Open vSwitch on CentOS/RHEL. If you missed the previous article simply click the below link to read it first for the installation of Open vSwitch on CentOS/RHEL. How To Install Open [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/configuring-open-vswitch-on-centos-rhel-fedora/">Configuring Open vSwitch on CentOS | RHEL | Fedora</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that <a href="https://www.osradar.com/?p=20893" target="_blank" aria-label="undefined (opens in a new tab)" rel="noreferrer noopener">how to configure Open vSwitch on CentOS/RHEL</a>. In our previous lecture you&#8217;ve learned that how to install Open vSwitch on CentOS/RHEL. If you missed the previous article simply click the below link to read it first for the installation of Open vSwitch on CentOS/RHEL.</p>



<p><a href="https://www.osradar.com/?p=20895" target="_blank" aria-label="undefined (opens in a new tab)" rel="noreferrer noopener">How To Install Open vSwitch on CentOS 8 | RHEL 8</a></p>



<p>Here we&#8217;ll use the os-net-confi script for the configuration of Open vSwtich on CentOS/RHEL. So, follow the below steps to configure the Open vSwitch on your system.</p>



<h3><strong>Step 1: Install os-net-config Tool</strong></h3>



<p>To configure the Open vSwitch we need os-net-config tool as it will help us to perform configuration steps more easily. It provides the configuration of host networking using YAML or JSON files format.</p>



<p>By default, os-net-config use the YAML file that can be located under <strong>/etc/os-net-config/config.yaml</strong>. You can also customize this by &#8211;config-file(-c) CLI option.</p>



<h4><strong>Installing os-net-config by using OpenStack Repository</strong></h4>



<p>Hit the following command to install the os-net-config tool using OpenStack repository if you&#8217;ve already configured it.</p>



<pre class="wp-block-verse">sudo yum install os-net-config</pre>



<p>Find out more details about the package by typing</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ <strong>rpm -qi os-net-config</strong>
Name : os-net-config
Version : 11.3.1
Release : 1.el8
Architecture: noarch
Install Date: Sat 08 Aug 2020 02:20:02 AM EDT
Group : Unspecified
Size : 3760703
License : ASL 2.0
Signature : RSA/SHA1, Sun 19 Apr 2020 12:34:05 PM EDT, Key ID f9b9fee7764429e6
Source RPM : os-net-config-11.3.1-1.el8.src.rpm
Build Date : Fri 28 Feb 2020 08:55:33 AM EST
Build Host : c1be.rdu2.centos.org
Relocations : (not relocatable)
Packager : CBS <a href="mailto:cbs@centos.org">cbs@centos.org</a>
Vendor : CentOS
URL : http://pypi.python.org/pypi/os-net-config
Summary : Host network configuration tool
Description :
Host network configuration tool for OpenStack.</pre>



<h4><strong>Installing os-net-config with the help of Pip</strong></h4>



<p>You can also install the os-net-config tool using pip or pip3 as it is distributed as python package.</p>



<h5><strong>CentOS 8</strong>:</h5>



<pre class="wp-block-verse">sudo dnf install python3-pip</pre>



<h5><strong>CentOS 7:</strong></h5>



<pre class="wp-block-verse">sudo yum install -y epel-release<br>sudo yum -y install python-pip<br>sudo pip install os-net-config</pre>



<p>Make sure to verify the PATH once the installation finished.</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ <strong>which os-net-config</strong>
/usr/bin/os-net-config</pre>



<h3><strong>Step 2: Configuring Open vSwitch by using os-net-config</strong></h3>



<p>Let&#8217;s dive into the configuration of Open vSwitch by using os-net-config tool as we&#8217;ve already installed the Open vSwitch and the configuration tool.</p>



<p>Here we&#8217;ll see some example to understand that how we can configure.</p>



<h4><strong>Single Interface Configuration with Static IP Address</strong></h4>



<p>First create a YAML file to save configuration.</p>



<pre class="wp-block-verse">sudo nano ovs-interface.yml</pre>



<p>And then configure as shown below:</p>



<pre class="wp-block-verse">network_config:
- type: interface
 name: eth1
 use_dhcp: false
 use_dhcpv6: false
 addresses:
- ip_netmask: 172.11.101.10/24
routes:
- ip_netmask: 0.0.0.0/0
next_hop: 172.11.101.254
default: true</pre>



<h5><strong>Result:</strong></h5>



<p>It&#8217;ll configure the eth1 interface along with the static IP address as 172.11.101/24 and the gateway is 172.11.101.254.</p>



<p>Run the given command to apply the configuration changes.</p>



<pre class="wp-block-verse">sudo os-net-config -c ovs-interface.yml</pre>



<h4><strong>Configure OVS bridge With Single Attached Interface (Port)</strong></h4>



<p>First create the file for configuration and then do the changes as given below:</p>



<pre class="wp-block-verse">sudo nano ovs-bridge-single-interface.yml</pre>



<p>It&#8217;ll look like this:</p>



<pre class="wp-block-verse">network_config:
- type: ovs_bridge
 name: br-ex 
use_dhcp: false 
use_dhcpv6: false 
addresses:
 - ip_netmask: 172.11.101.10/24
routes:
- ip_netmask: 0.0.0.0/0
next_hop: 172.11.101.254
default: true
members:
-
type: interface
name: eth1</pre>



<p>Finally apply the configuration.</p>



<pre class="wp-block-verse">os-net-config -c ovs-bridge-single-interface.yml</pre>



<h4><strong>Configure OVS Bridge on OVS Bond</strong></h4>



<p>Follow the below configuration for OVS bridge.</p>



<pre class="wp-block-verse">network_config:
- type: 
ovs_bridge 
name: br-ex 
use_dhcp: true 
members: 
- type: ovs_bond 
name: bond1 
members: 
- type: interface
name: em1
- type: interface
name: em2</pre>



<p>Apply the changes in a file as done in above step.</p>



<h4><strong>Configure Tagged VLAN Interface On Top of OVS Bridge</strong></h4>



<p>Here&#8217;s the configuration sample.</p>



<pre class="wp-block-verse">network_config:
- type: ovs_bridge 
name: br-ctlplane
 use_dhcp: true 
members: 
- type: interface
name: em1
- type: vlan 
vlan_id: 20 
addresses:
- ip_netmask: 192.0.2.1/24</pre>



<h4><strong>Creating an OVS Bond</strong></h4>



<p>You can create OVS bond by doing the changes as given below:</p>



<pre class="wp-block-verse">network_config:
- type: ovs_bridge
 name: bond1 
use_dhcp: true
 members: 
- type: interface
name: eno1
- type: interface
name: eno2</pre>



<h4><strong>Checking OVS Configuration</strong></h4>



<p>Once the settings are applied, network config script will be added automatically to <strong>/etc/sysconfig/network-scripts/</strong> directory.</p>



<pre class="wp-block-verse">ls /etc/sysconfig/network-scripts/</pre>



<p>Verify the settings by hitting</p>



<pre class="wp-block-verse">ovs-vsctl show</pre>



<h3><strong>Step 3: Creating KVM Network with OVS</strong></h3>



<p>For users who are using Open vSwitch with KVM virutalization, need to define the network that Virtual Machine will use.</p>



<p>Create xml config file.</p>



<pre class="wp-block-verse">sudo nano kvm-ovs.xml</pre>



<p>Then add the bridge details in the file and save it.</p>



<pre class="wp-block-verse">&lt;network&gt;
&lt;name&gt;ovs-bridge &lt;/name&gt;
&lt;forward mode='bridge'/&gt;
&lt;bridge name='br-ex'/&gt;
&lt;virtualport type='openvswitch'/&gt;
&lt;network/&gt;</pre>



<p><strong>Note:</strong></p>



<p><strong>ovs-bridge: </strong>Name of the libvirt network<br><strong>br-ex: </strong>Name of OVS bridge</p>



<p>To define a network from the XML file, without starting it hit</p>



<pre class="wp-block-verse">sudo virsh net-define kvm-ovs.xml</pre>



<p>If you want to start the inactive network(previously defined) type</p>



<pre class="wp-block-verse">sudo virsh net-start ovs-bridge</pre>



<p>To start a network when service started, type the following command:</p>



<pre class="wp-block-verse">sudo virsh net-autostart ovs-bridge</pre>



<p>Verify that autostart flag is turned to yes.</p>



<pre class="wp-block-verse">sudo virsh net-list --all</pre>



<p>So, this is how you can configure the Open vSwitch on CentOS/RHEL.</p>



<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram Channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/configuring-open-vswitch-on-centos-rhel-fedora/">Configuring Open vSwitch on CentOS | RHEL | Fedora</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/configuring-open-vswitch-on-centos-rhel-fedora/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install R and Rstudio on CentOS 8</title>
		<link>https://www.osradar.com/how-to-install-r-and-rstudio-on-centos-8/</link>
					<comments>https://www.osradar.com/how-to-install-r-and-rstudio-on-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 12 Jun 2020 05:51:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos 8 how to tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[how to install r]]></category>
		<category><![CDATA[How To Install R & Rstudio on CentOS 8]]></category>
		<category><![CDATA[how to install rstudio]]></category>
		<category><![CDATA[RStudio installation on cetnos 8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20040</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install R &#38; R Studio on CentOS 8. R is a famous programming language mostly used for the presentation of data in graphical for &#38; the statics computing. You can google the search for more information here we&#8217;ll provide some features and the installation of R [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-r-and-rstudio-on-centos-8/">How To Install R and Rstudio on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that how to install R &amp; R Studio on CentOS 8. R is a famous programming language mostly used for the presentation of data in graphical for &amp; the statics computing. You can google the search for more information here we&#8217;ll provide some features and the installation of R &amp; RStudio. So, just follow the below steps for easy installation and guide on how to install R &amp; Rstudio on CentOS 8.</p>



<h3><strong>Features of RStudio</strong></h3>



<ul><li>Support Windows, Linux, and macOS</li><li>Syntax highlighting, code completion, and smart indentation</li><li>Integrated support for Git and Subversion</li><li>Execute R code directly from the source editor</li><li>Fastly jump to function definitions</li><li>Manage multiple working directories using projects</li><li>Integrated R help and documentation</li><li>Interactive debugger to diagnose and fix errors quickly</li><li>Extensive package development tools</li><li>Support for interactive graphics with Shiny and ggvis</li><li>Supports authoring HTML, PDF, Word Documents, and slide shows</li></ul>



<h3><strong>Step 1: Update Your System</strong></h3>



<p>First of all update the system.</p>



<pre class="wp-block-verse">sudo yum update</pre>



<p>After the update finished run the below command to add the EPEL repositories.</p>



<pre class="wp-block-verse">sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf config-manager --set-enabled PowerTools</pre>



<h3><strong>Step 2: Installing R on CentOS 8</strong></h3>



<p>To install the R on CentOS 8 we&#8217;ll use the automated script. Just copy and paste the below command in your terminal.</p>



<pre class="wp-block-verse">sudo bash -c "$(curl -L https://rstd.io/r-install)"</pre>



<p>Output:</p>



<p>You&#8217;ll see the similar output.</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ sudo bash -c "$(curl -L https://rstd.io/r-install)"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 11861 100 11861 0 0 3785 0 0:00:03 0:00:03 --:--:-- 482k
Available Versions
4.0.0
3.6.3
3.6.2
3.6.1
3.6.0
3.5.3
3.5.2
3.5.1
3.5.0
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.3
3.3.2
3.3.1
3.3.0
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.3
3.1.2
3.1.1
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
Enter version to install: ( for latest)</pre>



<p>You can pick the version to install on your system from the above list. To install the latest version just hit the Enter.</p>



<p>Verify the installation by checking the version of R installed.</p>



<pre class="wp-block-verse">/opt/R/${R_VERSION}/bin/R --version</pre>



<p>Output:</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ /opt/R/4.0.0/bin/R --version
R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.</pre>



<p><strong>Note:</strong> ${R_VERSION} is the version of your installed R. So, in my case it would be.</p>



<p>Now, add the path to R binary to your $PATH.</p>



<pre class="wp-block-verse">vim ~/.bashrc</pre>



<pre class="wp-block-verse">export PATH=$PATH:/opt/R/4.0.0/bin/R --version</pre>



<pre class="wp-block-verse">export PATH=$PATH:/opt/R/4.0.0/bin/</pre>



<p>Then source the file &amp; confirm it.</p>



<p>Output:</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ source .bashrc
[sabi@localhost ~]$ which R
/opt/R/4.0.0/bin/R
[sabi@localhost ~]$ R --version
R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.</pre>



<h3><strong>Step 3: Installing RStudio on CentOS 8</strong></h3>



<p>To install the RStudio on CentOS 8 first, download the package from the official page. We&#8217;ll get it through terminal with the help of wget.</p>



<pre class="wp-block-verse">sudo yum -y install wget</pre>



<pre class="wp-block-verse">wget https://download1.rstudio.org/desktop/centos8/x86_64/rstudio-1.3.959-x86_64.rpm</pre>



<p>Once the download finished, install it using rpm or yum command.</p>



<pre class="wp-block-verse">sudo yum localinstall ./</pre>



<p>And press <strong>&#8220;Y&#8221;</strong> when prompted.</p>



<p>Wait for the installation to be finished. Now, you can launch it from CLI or Desktop.</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ sudo yum localinstall ./rstudio-1.3.959-x86_64.rpm
Last metadata expiration check: 0:33:14 ago on Fri 05 Jun 2020 05:14:10 AM EDT.
Dependencies resolved.
Package Architecture Version Repository Size
Installing:
rstudio x86_64 1.3.959-1 @commandline 143 M
Transaction Summary
Install 1 Package
Total size: 143 M
Installed size: 821 M
Is this ok [y/N]: y</pre>



<p>So, you&#8217;ve learned that how to Install R &amp; RStudio on CentOS 8.</p>



<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram Channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-r-and-rstudio-on-centos-8/">How To Install R and Rstudio on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-r-and-rstudio-on-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Dovecot on CentOS 8</title>
		<link>https://www.osradar.com/how-to-install-dovecot-on-centos-8/</link>
					<comments>https://www.osradar.com/how-to-install-dovecot-on-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 05 Jun 2020 22:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos 8 how to tutorials]]></category>
		<category><![CDATA[configure dovecot on linux]]></category>
		<category><![CDATA[dovecot installation guide]]></category>
		<category><![CDATA[dovecto]]></category>
		<category><![CDATA[how to install dovecot on centos 8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20015</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install Dovecot on CentOS 8. Dovecot is an open source service for IMAP &#38; POP3. It is fast and secure mail server here we will install and configure it on our CentOS 8 system. For easy installation just follow the below steps. Step 1: Update Your [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-dovecot-on-centos-8/">How to Install Dovecot on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that <a href="https://www.osradar.com/?p=20015">how to install Dovecot on CentOS 8</a>. Dovecot is an open source service for IMAP &amp; POP3. It is fast and secure mail server here we will install and configure it on our CentOS 8 system. For easy installation just follow the below steps.</p>



<h3><strong>Step 1: Update Your System</strong></h3>



<p>As usual we do, first of all update the system to have the latest packages.</p>



<pre class="wp-block-verse">sudo yum -y update</pre>



<h3><strong>Step 2: Install Dovecot on CentOS 8</strong></h3>



<p>As the Dovecot package is available on AppStream yum repo, so simply hit the below command to install it on CentOS*8.</p>



<pre class="wp-block-verse">sudo dnf -y install dovecot</pre>



<p>Output:</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ sudo dnf -y install dovecot
Last metadata expiration check: 0:00:54 ago on Thu 04 Jun 2020 10:29:57 AM EDT.
Dependencies resolved.
Package Arch Version Repository Size
Installing:
dovecot x86_64 1:2.2.36-10.el8 AppStream 4.6 M
Installing dependencies:
clucene-core x86_64 2.3.3.4-31.20130812.e8e3d20git.el8 AppStream 596 k
Transaction Summary
Install 2 Packages
Total download size: 5.2 M
Installed size: 21 M
Downloading Packages:
(1/2): clucene-core-2.3.3.4-31.20130812.e8e3d20 5.1 kB/s | 596 kB 01:56
(2/2): dovecot-2.2.36-10.el8.x86_64.rpm 27 kB/s | 4.6 MB 02:55
Total 30 kB/s | 5.2 MB 02:56
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : clucene-core-2.3.3.4-31.20130812.e8e3d20git.el8.x86_ 1/2
Running scriptlet: dovecot-1:2.2.36-10.el8.x86_64 2/2
Installing : dovecot-1:2.2.36-10.el8.x86_64 2/2
Running scriptlet: dovecot-1:2.2.36-10.el8.x86_64 2/2
Verifying : clucene-core-2.3.3.4-31.20130812.e8e3d20git.el8.x86_ 1/2
Verifying : dovecot-1:2.2.36-10.el8.x86_64 2/2
Installed:
dovecot-1:2.2.36-10.el8.x86_64
clucene-core-2.3.3.4-31.20130812.e8e3d20git.el8.x86_64
Complete!</pre>



<h3><strong>Step 3: Configuring Dovecot on CentOS8</strong></h3>



<p>As you know the installation of Dovecot is not just necessary for its proper working you&#8217;ve to configure it to work properly. Here I&#8217;ll provide you the fast and reliable configuration so that you face no issue during the installation and configuration of Dovecot.</p>



<p>Edit the<strong> /etc/dovecot/dovecot.conf</strong> file and un-comment the below line.</p>



<pre class="wp-block-verse">sudo nano /etc/dovecot/dovecot.conf
###Uncomment the below lines given.###
<strong>protocols = imap pop3 lmtp
listen = *, ::</strong></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="751" height="498" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/06/e1.png" alt="" class="wp-image-20739" srcset="https://www.osradar.com/wp-content/uploads/2020/06/e1.png 751w, https://www.osradar.com/wp-content/uploads/2020/06/e1-300x199.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/e1-696x462.png 696w" sizes="(max-width: 751px) 100vw, 751px" /></figure>



<p>Then save and close the file.</p>



<p>After it edit the<strong> /etc/dovecot/conf.d/10-auth.conf</strong> file for authentication purposes &amp; update it to the similar below given.</p>



<pre class="wp-block-verse">sudo nano /etc/dovecot/conf.d/10-auth.conf
disable_plaintext_auth = no
auth_mechanisms = plain login</pre>



<p>Now, configure the location of the mail server. Make sure to provide the accurate location.</p>



<pre class="wp-block-verse">sudo nano /etc/dovecot/conf.d/10-mail.conf</pre>



<pre class="wp-block-verse">mail_location = maildir:~/Maildir</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="720" height="492" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/06/4-2.png" alt="" class="wp-image-20740" srcset="https://www.osradar.com/wp-content/uploads/2020/06/4-2.png 720w, https://www.osradar.com/wp-content/uploads/2020/06/4-2-300x205.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/4-2-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2020/06/4-2-696x476.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></figure>



<p>After it edit the <strong>/etc/dovecot/conf.d/10-master.conf</strong> file and provide the user name as well as group name of the mail server.</p>



<pre class="wp-block-verse">unix_listener /var/spool/postfix/private/auth {<br>mode = 0666<br>user = postfix<br>group = postfix<br>}</pre>



<p>Then finally edit the SSL Configuration file located under <strong>/etc/dovecot/conf.d/10-ssl.conf </strong>and edit it to use your ownSSL. If you&#8217;ve not any SSL certificate it will use it&#8217;s own.</p>



<pre class="wp-block-verse">ssl = required
ssl_cert =</pre>



<h3><strong>Step 4: Manage Dovecot Service</strong></h3>



<p>To start the Dovecot service on the boot of system hit the below command in your terminal.</p>



<pre class="wp-block-verse">sudo systemctl enable dovecot.service</pre>



<p>For start, stop and restart hit the below commands respectively.</p>



<pre class="wp-block-verse">sudo systemctl start dovecot.service
sudo systemctl stop dovecot.service
sudo systemctl restart dovecot.service</pre>



<p>Verify the status of the Dovecot by hitting the below command.</p>



<pre class="wp-block-verse">sudo systemctl status dovecot.service</pre>



<p>Output:</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ sudo systemctl status dovecot.service
● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/usr/lib/systemd/system/dovecot.service; disabled; vendor pr&gt;
Active: active (running) since Thu 2020-06-04 10:47:29 EDT; 2s ago
Docs: man:dovecot(1)
http://wiki2.dovecot.org/
Process: 36951 ExecStart=/usr/sbin/dovecot (code=exited, status=0/SUCCESS)
Process: 36942 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited,&gt;
Main PID: 36952 (dovecot)
Tasks: 4 (limit: 4884)
Memory: 11.1M
CGroup: /system.slice/dovecot.service
├─36952 /usr/sbin/dovecot
├─36959 dovecot/anvil
├─36960 dovecot/log
└─36962 dovecot/config
Jun 04 10:47:29 localhost.localdomain systemd[1]: Starting Dovecot IMAP/POP3 em&gt;
Jun 04 10:47:29 localhost.localdomain dovecot[36951]: Warning: Corrected permis&gt;
Jun 04 10:47:29 localhost.localdomain dovecot[36951]: master: Warning: Correcte&gt;
Jun 04 10:47:29 localhost.localdomain systemd[1]: Started Dovecot IMAP/POP3 ema&gt;
Jun 04 10:47:29 localhost.localdomain dovecot[36952]: master: Dovecot v2.2.36 (&gt;</pre>



<h3><strong>Step 5: Testing Configuration</strong></h3>



<p>To test the configuration create a user on your system and install the muatt to connect to the mailbox using imaps protocol.</p>



<pre class="wp-block-verse">sudo dnf install mutt</pre>



<p>After it connect to the mail box by hitting</p>



<pre class="wp-block-verse">mutt -f imaps://sabi@localhost</pre>



<p><strong>Note:</strong> Replace the username &#8220;sabi&#8221; with your own username.</p>



<p>Accept the certificate when prompted. And provide your credentials to see the emails of your account.</p>



<h3><strong>Step 6: Allow Firewall Access</strong></h3>



<p>To access the server from remote machine, don&#8217;t forget to allow the firewall.</p>



<p>Here are the ports used by IMAP,IMAPS,POP3 and POP3S.</p>



<ul><li>IMAP &#8211; 143</li><li>IMAPS &#8211; 993</li><li>POP3 &#8211; 110</li><li>POP3S &#8211; 995</li></ul>



<p>To add firewall rules hit the below commands.</p>



<pre class="wp-block-verse">sudo firewall-cmd --add-service={pop3,imap} --permanent<br>sudo firewall-cmd --add-service={pop3s,imaps} --permanent</pre>



<p>And then reload the changes to take effect.</p>



<pre class="wp-block-verse">sudo firewall-cmd --reload</pre>



<p>So, this is how you can install dovecot on CentOS 8 and configure it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-dovecot-on-centos-8/">How to Install Dovecot on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-dovecot-on-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
