<?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>dovecot Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/dovecot/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 29 Jan 2019 11:36:32 +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>Setting up Mail Infrastructure on top of CentOS7</title>
		<link>https://www.osradar.com/setting-up-mail-infrastructure-on-top-of-centos7/</link>
					<comments>https://www.osradar.com/setting-up-mail-infrastructure-on-top-of-centos7/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Tue, 29 Jan 2019 11:36:32 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dovecot]]></category>
		<category><![CDATA[Mail server]]></category>
		<category><![CDATA[Postfix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10358</guid>

					<description><![CDATA[<p>This is about setup a system infrastructure that facilitate sending &#38; receiving mails from any compatible mail agents. To ease of understanding, I am going to break up the key component as below. Mail Box: A central storage location &#8211; could be a local disk within the server &#8211; that store every message send by [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/setting-up-mail-infrastructure-on-top-of-centos7/">Setting up Mail Infrastructure on top of CentOS7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is about setup a system infrastructure that facilitate sending &amp; receiving mails from any compatible mail agents. To ease of understanding, I am going to break up the key component as below.</p>
<ol>
<li><strong>Mail Box</strong>: A central storage location &#8211; could be a local disk within the server &#8211; that store every message send by users.</li>
<li><strong>Mail Sender</strong>: When a message is being sent, this helps to route mails to the central MailBox.</li>
<li><strong>Mail Receiver</strong>: Helps to retrieve and get messages into the local system from the central Mailbox</li>
<li><strong>Mail Agent</strong>: A place where user can compose &amp; read mails.</li>
</ol>
<p>&nbsp;</p>
<p>The selected Applications are;</p>
<ul>
<li>Mail Sender (SMTP) =&gt; Postfix</li>
<li>Mail Receive (IMAP/POP) =&gt; Dovecot</li>
<li>Mail Agent =&gt; Thunder Bird</li>
</ul>
<p>&nbsp;</p>
<h3>Configuring Postfix:</h3>
<p>01. Package Installation</p>
<pre class="">yum install postfix</pre>
<p>&nbsp;</p>
<p>02. Reflecting the desired parameters in main configuration file =&gt; /etc/postfix/main.cf<br />
Note that this file is having bunch of configuration parameter, so be mindful to edit only those are mentioned below.</p>
<pre class="lang:sh decode:true">myhostname = mail.example.com        
mydomain = example.com               
myorigin = $mydomain                  
inet_interfaces = all                 
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain        
mynetworks = 127.0.0.0/8, 10.0.0.0/24    

home_mailbox = Maildir/               
message_size_limit = 10485760         
mailbox_size_limit = 1073741824</pre>
<p><strong>myhostname</strong> =&gt; hostname of the server<br />
<strong>domain</strong> =&gt; domain-name of the server<br />
<strong>myorigin</strong> =&gt; the domain-name append to every message that are sent off by the server (for example, @example.com)<br />
<strong>inet_interfaces</strong> =&gt; enable server to listen from all local interfaces<br />
<strong>mydestination</strong> =&gt; which domain the server will be responsible for mail delivery.<br />
<strong>mynetworks</strong> =&gt; from which network subnets to allow access for sending &amp; receiving mails.<br />
<strong>home_mailbox</strong> =&gt; specify path of the mail storing location<br />
<strong>message_size_limit</strong> =&gt; limit an email size for 10M<br />
<strong>mailbox_size_limit</strong> =&gt; limit a mailbox for 1G</p>
<h3></h3>
<p>&nbsp;</p>
<h3>Configuring Dovecot:</h3>
<p>01. Package Installation</p>
<pre class="">yum install dovecot</pre>
<p>&nbsp;</p>
<p>02. Unlike Postfix, Dovecot maintain different aspect of configurable option in different files. Let go through the once that is important for this demo.</p>
<p>=&gt; vim /etc/dovecot/dovecot.conf</p>
<pre class="lang:sh decode:true">protocols = imap pop3 lmtp            
listen = *</pre>
<p>&nbsp;</p>
<p>=&gt; vim  /etc/dovecot/conf.d/10-auth.conf</p>
<pre class="lang:sh decode:true">auth_mechanisms = plain login
disable_plaintext_auth = no</pre>
<p>&nbsp;</p>
<p>=&gt; vim /etc/dovecot/conf.d/10-mail.conf</p>
<pre class="lang:sh decode:true">mail_location = maildir:~/Maildir</pre>
<p>&nbsp;</p>
<p>=&gt; vim  /etc/dovecot/conf.d/10-master.conf</p>
<pre class="lang:sh decode:true "># Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}</pre>
<p>&nbsp;</p>
<p>=&gt; vim /etc/dovecot/conf.d/10-ssl.conf</p>
<pre class="lang:sh decode:true">ssl = no</pre>
<p>&nbsp;</p>
<p>Now its time to start the respective service and check the status each.</p>
<pre class="lang:sh decode:true ">systemctl start postfix
systemctl start dovecot

systemctl status postfix
systemctl status dovecot
</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>Configuring FirewallD:</h3>
<p>01. To allow SMTP, IMAP/POP traffic, firewall daemon should be configured.</p>
<pre class="lang:sh decode:true ">firewall-cmd --zone=public --add-port=25/tcp
firewall-cmd --zone=public --add-port=25/tcp --permanent
firewall-cmd --zone=public --add-port=110/tcp
firewall-cmd --zone=public --add-port=110/tcp --permanent
firewall-cmd --zone=public --add-port=143/tcp
firewall-cmd --zone=public --add-port=143/tcp --permanent</pre>
<h3></h3>
<p>&nbsp;</p>
<h3>Configuring Thunderbird:</h3>
<p>Following installation and configuration suppose to be in a graphical environment.</p>
<p>01. Package Installation</p>
<pre class="lang:sh decode:true">yum install epel-release
yum install thunderbird</pre>
<p>&nbsp;</p>
<p>02. Lets create local user accounts for our demo</p>
<pre class="lang:sh decode:true ">useradd --home-dir /home/user1 -m --shell /bin/bash user1
useradd --home-dir /home/user2 -m --shell /bin/bash user2</pre>
<p>&nbsp;</p>
<p>03. Create user account on Thunderbird.</p>
<p>Once you launch the Thunderbird, Under Preferences &gt; Account Setting it allows to create new user account with following details.</p>
<p><img loading="lazy" class="alignnone size-full wp-image-10364" src="https://www.osradar.com/wp-content/uploads/2019/01/thunderbird.png" alt="" width="770" height="386" srcset="https://www.osradar.com/wp-content/uploads/2019/01/thunderbird.png 770w, https://www.osradar.com/wp-content/uploads/2019/01/thunderbird-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/thunderbird-768x385.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/thunderbird-696x349.png 696w" sizes="(max-width: 770px) 100vw, 770px" /><br />
Make sure to fill the parameters as in the figure, but its important to change the Server hostname for both the IMAP/SMTP to what you have in your environment.</p>
<p>Once you have two account, you can send/receive mails in between.</p>
<p><em><strong>&#8220;Hope this has been informative for you&#8221;</strong></em></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/setting-up-mail-infrastructure-on-top-of-centos7/">Setting up Mail Infrastructure on top of CentOS7</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/setting-up-mail-infrastructure-on-top-of-centos7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
