<?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>Mail server Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/mail-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 27 Dec 2020 20:22:08 +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>How to configure a mail server with iRedMail on Debian 10?</title>
		<link>https://www.osradar.com/configure-a-mail-server-with-iredmail-debian-10/</link>
					<comments>https://www.osradar.com/configure-a-mail-server-with-iredmail-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 29 Dec 2020 08:21:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[iredmail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[Mail server]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27041</guid>

					<description><![CDATA[<p>Hello, friends. In this post, I&#8217;ll show you how to set up a mail server using iRedMail on Debian 10. Before we start… With iRedMail, you can deploy an OPEN SOURCE, FULLY FLEDGED, FULL-FEATURED mail server in several minutes, for free. This according to the project website. When we say Fully Fledged we don&#8217;t exaggerate. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/configure-a-mail-server-with-iredmail-debian-10/">How to configure a mail server with iRedMail on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, I&#8217;ll show you how to set up a mail server using iRedMail on Debian 10.</p>



<h2>Before we start…</h2>



<blockquote class="wp-block-quote"><p>With iRedMail, you can deploy an OPEN SOURCE, FULLY FLEDGED, FULL-FEATURED mail server in several minutes, for free. </p></blockquote>



<p>This according to the <a href="https://www.iredmail.org/" target="_blank" rel="noreferrer noopener">project website.</a></p>



<p>When we say Fully Fledged we don&#8217;t exaggerate. iRedMail includes antivirus, protection tools, a web client, and many other things like calendar and so on that make it the best in its field.</p>



<p>This is why <strong>we recommend a server with 4Gb of RAM so you don&#8217;t have any problems deploying it</strong>. Also, the Debian server must be clean. This means that it should be freshly installed.</p>



<p>Besides this, you have to configure a DNS Mx with your hostname and domain name.</p>



<p>For example:</p>



<p><strong>In this post, I will use the domain angtest.ga, and the hostname will be mail.angtest.ga</strong></p>



<p>Properly configuring a DNS A (one to your domain and another to mail. [your-hostname] and MX is fundamental for us to be able to use it.</p>



<p>So, let&#8217;s get started.</p>



<h2>Configure a mail server with iRedMail on Debian 10</h2>



<h3>1.- Set the hostname</h3>



<p>Before we start we have to update our system. To do this, execute the following commands:</p>



<pre class="wp-block-preformatted">sudo apt update<br>sudo apt upgrade</pre>



<p>Then, you can define your hostname for it to run:</p>



<pre class="wp-block-preformatted">sudo hostnamectl set-hostname</pre>



<p>For this example:</p>



<pre class="wp-block-preformatted">sudo hostnamectl set-hostname mail.angtest.ga</pre>



<p>Now edit the /<strong>etc/hosts</strong> file and add the following lines</p>



<pre class="wp-block-preformatted">127.0.0.1 mail.angtest.ga localhost</pre>



<p>Remember to replace my hostname with yours. Then save the changes and close the editor.</p>



<h3>2.- Download and run iRedMail on Debian 10</h3>



<p>Now the next step is to download iRedMail by using <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener">the wget command.</a></p>



<pre class="wp-block-preformatted">wget https://github.com/iredmail/iRedMail/archive/1.3.2.tar.gz -O redmail.tar.gz</pre>



<p>Then, decompress the downloaded file</p>



<pre class="wp-block-preformatted">tar xvf redmail.tar.gz</pre>



<p>Then access the folder that is generated</p>



<pre class="wp-block-preformatted">cd iRedMail-1.3.2/</pre>



<p>Give execution permissions to the iRedMail script</p>



<pre class="wp-block-preformatted">chmod +x iRedMail.sh</pre>



<p>And execute it with the command sudo.</p>



<pre class="wp-block-preformatted">sudo bash iRedMail.sh</pre>



<p>And it will start all the process of package installation and configuration.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="509" src="https://www.osradar.com/wp-content/uploads/2020/12/2-9-1024x509.png" alt="1.- welcome screen" class="wp-image-27044" srcset="https://www.osradar.com/wp-content/uploads/2020/12/2-9-1024x509.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/2-9-300x149.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/2-9-768x382.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/2-9-696x346.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/2-9-1068x531.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/2-9.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- welcome screen</figcaption></figure>



<p>In the next screen, you have to define the directory where the emails will be stored.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="486" src="https://www.osradar.com/wp-content/uploads/2020/12/3-8-1024x486.png" alt="2.- Default mail storage path" class="wp-image-27045" srcset="https://www.osradar.com/wp-content/uploads/2020/12/3-8-1024x486.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/3-8-300x142.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/3-8-768x365.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/3-8-696x330.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/3-8-1068x507.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/3-8.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Default mail storage path</figcaption></figure>



<p>Then you can install Nginx to run the web client that incorporates iRedMail. If you don&#8217;t need one, you can choose not to install Nginx, otherwise install it. <strong>In this case, we will install it</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="449" src="https://www.osradar.com/wp-content/uploads/2020/12/4-6-1024x449.png" alt="3.- Choosing the web server to install" class="wp-image-27046" srcset="https://www.osradar.com/wp-content/uploads/2020/12/4-6-1024x449.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/4-6-300x131.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/4-6-768x336.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/4-6-696x305.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/4-6-1068x468.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/4-6.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Choosing the web server to install</figcaption></figure>



<p>Now it&#8217;s up to you to choose which application to use the email server to store your contacts and accounts. The options are OpenLDAP, MariaDB, and PostgreSQL. We will choose <a href="https://www.osradar.com/list-all-users-on-mysql-mariadb/" target="_blank" rel="noreferrer noopener">MariaDB</a>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="468" src="https://www.osradar.com/wp-content/uploads/2020/12/5-6-1024x468.png" alt="4.- Select MariaDB to store mail accounts" class="wp-image-27047" srcset="https://www.osradar.com/wp-content/uploads/2020/12/5-6-1024x468.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/5-6-300x137.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/5-6-768x351.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/5-6-696x318.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/5-6-1068x488.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/5-6.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Select MariaDB to store mail accounts</figcaption></figure>



<p>If you choose MariaDB, you have to define a root password.</p>



<p>Then, you have to indicate which is your domain.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="458" src="https://www.osradar.com/wp-content/uploads/2020/12/6-5-1024x458.png" alt="5.- Type your domain to configure a email server" class="wp-image-27048" srcset="https://www.osradar.com/wp-content/uploads/2020/12/6-5-1024x458.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/6-5-300x134.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/6-5-768x343.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/6-5-696x311.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/6-5-1068x477.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/6-5.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Type your domain to configure a email server</figcaption></figure>



<p>In the next screen, you have to specify a password for the mail domain administrator. Remember that it has to be strong enough.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="468" src="https://www.osradar.com/wp-content/uploads/2020/12/7-4-1024x468.png" alt="6.- Specify the password for the mail administrator" class="wp-image-27049" srcset="https://www.osradar.com/wp-content/uploads/2020/12/7-4-1024x468.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/7-4-300x137.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/7-4-768x351.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/7-4-696x318.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/7-4-1068x488.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/7-4.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Specify the password for the mail administrator</figcaption></figure>



<p>Now it&#8217;s time to choose the components to be used by iRedMail.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="464" src="https://www.osradar.com/wp-content/uploads/2020/12/8-2-1024x464.png" alt="7.- Optional components of iRedMail" class="wp-image-27050" srcset="https://www.osradar.com/wp-content/uploads/2020/12/8-2-1024x464.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/8-2-300x136.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/8-2-768x348.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/8-2-696x315.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/8-2-1068x484.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/8-2.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>7.- Optional components of iRedMail</figcaption></figure>



<p>Then you will see an output where the options you have chosen are shown.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="788" height="406" src="https://www.osradar.com/wp-content/uploads/2020/12/9-2.png" alt="8.- Configure a email server with iRedMail" class="wp-image-27051" srcset="https://www.osradar.com/wp-content/uploads/2020/12/9-2.png 788w, https://www.osradar.com/wp-content/uploads/2020/12/9-2-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/9-2-768x396.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/9-2-696x359.png 696w" sizes="(max-width: 788px) 100vw, 788px" /><figcaption>8.- Configure a email server with iRedMail</figcaption></figure>



<p>You will also be asked if you want to use the firewall rules that iRedMail offers.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="689" height="136" src="https://www.osradar.com/wp-content/uploads/2020/12/10-2.png" alt="9.- Accept the firewall rules" class="wp-image-27052" srcset="https://www.osradar.com/wp-content/uploads/2020/12/10-2.png 689w, https://www.osradar.com/wp-content/uploads/2020/12/10-2-300x59.png 300w" sizes="(max-width: 689px) 100vw, 689px" /><figcaption>9.- Accept the firewall rules</figcaption></figure>



<p>In the end, if everything went well, you will see the following screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="809" height="677" src="https://www.osradar.com/wp-content/uploads/2020/12/11-2.png" alt="10.- iRedMail is installed" class="wp-image-27053" srcset="https://www.osradar.com/wp-content/uploads/2020/12/11-2.png 809w, https://www.osradar.com/wp-content/uploads/2020/12/11-2-300x251.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/11-2-768x643.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/11-2-696x582.png 696w" sizes="(max-width: 809px) 100vw, 809px" /><figcaption>10.- iRedMail is installed</figcaption></figure>



<p>Now reboot the server.</p>



<p>When it restarts, you can go to <code>https://mail.your-domain.com/iredadmin/</code> and you will see the login screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="851" height="436" src="https://www.osradar.com/wp-content/uploads/2020/12/12.png" alt="11.- iRedMail admin login screen" class="wp-image-27054" srcset="https://www.osradar.com/wp-content/uploads/2020/12/12.png 851w, https://www.osradar.com/wp-content/uploads/2020/12/12-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/12-768x393.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/12-696x357.png 696w" sizes="(max-width: 851px) 100vw, 851px" /><figcaption>11.- iRedMail admin login screen</figcaption></figure>



<h3>3.- Strongly recommended &#8211; Configuring the TLS certificate</h3>



<p>In an email server, the main thing is security so we have to generate a TLS certificate. The best way to do this is to use Let&#8217;s encrypt</p>



<p>So, install the certbot package.</p>



<pre class="wp-block-preformatted">sudo apt install certbot</pre>



<p>Then, execute the following command to generate the certificate</p>



<pre class="wp-block-preformatted">sudo certbot certonly --webroot --agree-tos --email your-email@example.com -d mail.your-domain.com -w /var/www/html/</pre>



<p>Remember to replace the fields with your domain.</p>



<p>They must now be added to postfix and Dovecot.</p>



<p>To add them to Postfix, open the Postfix configuration file:</p>



<pre class="wp-block-preformatted">sudo nano /etc/postfix/main.cf</pre>



<p>Find the lines:</p>



<pre class="wp-block-preformatted">smtpd_tls_key_file = /etc/ssl/private/iRedMail.key<br>smtpd_tls_cert_file = /etc/ssl/certs/iRedMail.crt<br>smtpd_tls_CAfile = /etc/ssl/certs/iRedMail.crt</pre>



<p>And replace them with the following:</p>



<pre class="wp-block-preformatted">smtpd_tls_key_file = /etc/letsencrypt/live/mail.your-domain.com/privkey.pem<br>smtpd_tls_cert_file = /etc/letsencrypt/live/mail.your-domain.com/cert.pem<br>smtpd_tls_CAfile = /etc/letsencrypt/live/mail.your-domain.com/chain.pem</pre>



<p>Replace <code>mail.your-domain.com</code> with the correct value in your case.</p>



<p>Save the changes and close the editor.</p>



<p>To apply the changes you have to restart the Postfix service</p>



<pre class="wp-block-preformatted">sudo systemctl reload postfix</pre>



<p>Now it&#8217;s Dovecot&#8217;s turn. Open the application configuration file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/dovecot/dovecot.conf</pre>



<p>And find the lines:</p>



<pre class="wp-block-preformatted">ssl_cert = &lt;/etc/ssl/certs/iRedMail.crt<br>ssl_key = &lt;/etc/ssl/private/iRedMail.key</pre>



<p>And replace them with the following:</p>



<pre class="wp-block-preformatted">ssl_cert = &lt;/etc/letsencrypt/live/mail.your-domain.com/fullchain.pem<br>ssl_key = &lt;/etc/letsencrypt/live/mail.your-domain.com/privkey.pem</pre>



<p>Again, replace <code>mail.your-domain.com</code> with the correct value in your case.</p>



<p>Save the changes and close the editor. To apply the changes, execute:</p>



<pre class="wp-block-preformatted">sudo systemctl reload dovecot</pre>



<p>Now yes, the connections with our server are more secure.</p>



<h3>4.- Preparing iRedMail to the first use</h3>



<p>Now it&#8217;s time to create a new user to test the server.</p>



<p>Login to the admin panel.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="525" src="https://www.osradar.com/wp-content/uploads/2020/12/13-1024x525.png" alt="12.- iRedMail admin panel" class="wp-image-27057" srcset="https://www.osradar.com/wp-content/uploads/2020/12/13-1024x525.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/13-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/13-768x394.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/13-696x357.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/13-1068x547.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/13.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>12.- iRedMail admin panel</figcaption></figure>



<p>Go to <em>Add > Users</em> and define an email address and password. You can also define a limit of use.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="525" src="https://www.osradar.com/wp-content/uploads/2020/12/14-1024x525.png" alt="13.- Adding a mail user" class="wp-image-27058" srcset="https://www.osradar.com/wp-content/uploads/2020/12/14-1024x525.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/14-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/14-768x394.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/14-696x357.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/14-1068x547.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/14.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>13.- Adding a mail user</figcaption></figure>



<p>After that, you will see that the user has been created and you can expand or reduce the mailbox.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="525" src="https://www.osradar.com/wp-content/uploads/2020/12/15-1024x525.png" alt="14.-  User profile" class="wp-image-27059" srcset="https://www.osradar.com/wp-content/uploads/2020/12/15-1024x525.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/15-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/15-768x394.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/15-696x357.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/15-1068x547.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/15.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>14.-  User profile</figcaption></figure>



<h3>5.- Access to the mail server</h3>



<p>Now if you can go to <code>https://mail.your-domain.com/mail/</code> and see the web client</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="525" src="https://www.osradar.com/wp-content/uploads/2020/12/16-1024x525.png" alt="15.- Access to the mail account" class="wp-image-27061" srcset="https://www.osradar.com/wp-content/uploads/2020/12/16-1024x525.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/16-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/16-768x394.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/16-696x357.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/16-1068x547.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/16.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>15.- Access to the mail account</figcaption></figure>



<p>Now you can send and receive emails to your address.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="525" src="https://www.osradar.com/wp-content/uploads/2020/12/17-1024x525.png" alt="16.- Mail server with iRedMail on Debian 10" class="wp-image-27062" srcset="https://www.osradar.com/wp-content/uploads/2020/12/17-1024x525.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/17-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/17-768x394.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/17-696x357.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/17-1068x547.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/17.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>16.- Mail server with iRedMail on Debian 10</figcaption></figure>



<p>Optionally, you can even use a third-party client such as Thunderbird. Look at the image and note the parameters to use.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="587" height="669" src="https://www.osradar.com/wp-content/uploads/2020/12/18.png" alt="17.- Thunderbird settings" class="wp-image-27063" srcset="https://www.osradar.com/wp-content/uploads/2020/12/18.png 587w, https://www.osradar.com/wp-content/uploads/2020/12/18-263x300.png 263w" sizes="(max-width: 587px) 100vw, 587px" /><figcaption>17.- Thunderbird settings</figcaption></figure>



<p>In the end, the connection is successful and you can start using it.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="557" src="https://www.osradar.com/wp-content/uploads/2020/12/19-1024x557.png" alt="18.- Mail server with iRedMail on Debian 10" class="wp-image-27064" srcset="https://www.osradar.com/wp-content/uploads/2020/12/19-1024x557.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/19-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/19-768x418.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/19-696x379.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/19-1068x581.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/19.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>18.- Mail server with iRedMail on Debian 10</figcaption></figure>



<p>So, enjoy it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/configure-a-mail-server-with-iredmail-debian-10/">How to configure a mail server with iRedMail on Debian 10?</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/configure-a-mail-server-with-iredmail-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install RainLoop a web-based email client on Ubuntu 18.04</title>
		<link>https://www.osradar.com/install-rainloop-a-web-based-email-client-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/install-rainloop-a-web-based-email-client-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 16 Mar 2019 15:55:07 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[Mail server]]></category>
		<category><![CDATA[RainLoop]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11443</guid>

					<description><![CDATA[<p>Email plays an important role in companies and on a personal level. Sometimes it is convenient to have a personal email server, but sometimes it is not. So for this, we would use the web interface of each of the email services. In general, all these web clients fulfill their purpose and there is no [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-rainloop-a-web-based-email-client-on-ubuntu-18-04/">Install RainLoop a web-based email client on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Email plays an important role in companies and on a personal level. Sometimes it is convenient to have a personal email server, but sometimes it is not. So for this, we would use the web interface of each of the email services. In general, all these web clients fulfill their purpose and there is no need for a third party client. Although sometimes it is necessary to have an alternative to them, there are desktop clients such as Thunderbird but there are also web-based. That&#8217;s why today I&#8217;ll show you how to install RainLoop on Ubuntu 18.04.</p>
<p><a href="http://rainloop.net/" target="_blank" rel="noopener noreferrer">RainLoop</a> is a modern email client created in <a href="https://www.osradar.com/how-to-install-php-7-3-on-debian-9/" target="_blank" rel="noopener noreferrer">PHP</a>. It is quite lightweight and does not consume too many resources. So we&#8217;re talking about a web-based client. It is compatible with many email providers, but also with its own mail server. So we have a new option to handle mail quickly and easily. RainLoop is open source since it is released under the <a href="https://www.rainloop.net/licensing/" target="_blank" rel="noopener noreferrer">GNU AFFERO license</a>. However, it has an enterprise version with more features focused on businesses.</p>
<p>In the community version these are some of its features:</p>
<ul>
<li>Modern user interface.</li>
<li>Complete support of IMAP and SMTP protocols including SSL and STARTTLS.<br />
Extending functionality with plugins installed through the admin panel.</li>
<li>Perfect rendering of complex HTML mails.</li>
<li>Drag&#8217;n&#8217;drop for mails and attachments.</li>
<li>Keyboard shortcuts support.</li>
<li>Autocompletion of e-mail addresses</li>
</ul>
<p>In addition, the application has integration to popular services such as Dropbox, Twitter, Google, and Facebook.</p>
<p>So, let us start to install RainLoop.</p>
<h1>1. Install Apache and PHP</h1>
<p>Being a web-based application, the first thing we have to do is install Apache and <a href="https://www.osradar.com/how-to-install-the-latest-phpmyadmin-on-centos-7/" target="_blank" rel="noopener noreferrer">PHP</a> for everything to work. So open a terminal or connect to your server using SSH and run the following command:</p>
<pre>:~$ sudo apt install apache2 php php-curl php-json php-iconv php-xml php-dom php-mysql php-pdo libapache2-mod-php</pre>
<p><figure id="attachment_11444" aria-describedby="caption-attachment-11444" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11444" src="https://www.osradar.com/wp-content/uploads/2019/03/1-9.png" alt="1.- Install Apache and PHP" width="1365" height="459" srcset="https://www.osradar.com/wp-content/uploads/2019/03/1-9.png 1365w, https://www.osradar.com/wp-content/uploads/2019/03/1-9-300x101.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/1-9-768x258.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/1-9-1024x344.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/1-9-696x234.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/1-9-1068x359.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/1-9-1249x420.png 1249w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11444" class="wp-caption-text">1.- Install Apache and PHP</figcaption></figure></p>
<p>Once the process is complete. PHP and Apache will be installed and ready to run. Then, it is a good idea to enable and check the status of the service.</p>
<pre>:~$ sudo systemctl enable apache2
:~$ sudo systemctl status apache2</pre>
<p><figure id="attachment_11445" aria-describedby="caption-attachment-11445" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11445" src="https://www.osradar.com/wp-content/uploads/2019/03/2-9.png" alt="2.- The Apache2 service" width="1365" height="445" srcset="https://www.osradar.com/wp-content/uploads/2019/03/2-9.png 1365w, https://www.osradar.com/wp-content/uploads/2019/03/2-9-300x98.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/2-9-768x250.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/2-9-1024x334.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/2-9-696x227.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/2-9-1068x348.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/2-9-1288x420.png 1288w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11445" class="wp-caption-text">2.- The Apache2 service</figcaption></figure></p>
<h1>2. Install MariaDB</h1>
<p>Now, you need to install a database manager. This step is optional because RainLoop does not require it. However, it is good to do so in order to extend its functionality.</p>
<p>So run the following command:</p>
<pre>:~$ sudo apt install mariadb-server</pre>
<p><figure id="attachment_11446" aria-describedby="caption-attachment-11446" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11446" src="https://www.osradar.com/wp-content/uploads/2019/03/3-8.png" alt="3.- Install Mariadb" width="1365" height="508" srcset="https://www.osradar.com/wp-content/uploads/2019/03/3-8.png 1365w, https://www.osradar.com/wp-content/uploads/2019/03/3-8-300x112.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/3-8-768x286.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/3-8-1024x381.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/3-8-696x259.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/3-8-1068x397.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/3-8-1129x420.png 1129w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11446" class="wp-caption-text">3.- Install MariaDB</figcaption></figure></p>
<p>Then, set a root password using the <code>mysql_secure_installation</code> script.</p>
<pre>:~$ sudo mysql_secure_installation</pre>
<p><figure id="attachment_11447" aria-describedby="caption-attachment-11447" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11447" src="https://www.osradar.com/wp-content/uploads/2019/03/4-6.png" alt="4.- Configuring MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/03/4-6.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/4-6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/4-6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/4-6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/4-6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/4-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/4-6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11447" class="wp-caption-text">4.- Configuring MariaDB</figcaption></figure></p>
<p>After defining the <a href="https://www.osradar.com/reset-the-mysql-mariadb-root-password/" target="_blank" rel="noopener noreferrer">root password</a>, you will have to answer other configuration questions. You can answer whatever you want, in this post, I will answer like this: Y, N, Y, Y.</p>
<h1>3. Install RainLoop</h1>
<p>It is now possible to install RainLoop. First of all, you have to download it using wget. So run the following command:</p>
<pre>:~$ cd /tmp/
:~$ wget http://www.rainloop.net/repository/webmail/rainloop-community-latest.zip</pre>
<p><figure id="attachment_11448" aria-describedby="caption-attachment-11448" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11448" src="https://www.osradar.com/wp-content/uploads/2019/03/5-4.png" alt="5.- Download and install RainLoop" width="1365" height="295" srcset="https://www.osradar.com/wp-content/uploads/2019/03/5-4.png 1365w, https://www.osradar.com/wp-content/uploads/2019/03/5-4-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/5-4-768x166.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/5-4-1024x221.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/5-4-696x150.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/5-4-1068x231.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11448" class="wp-caption-text">5.- Download and install RainLoop</figcaption></figure></p>
<p>Next, you have to create a new folder for RainLoop and then, decompress it.</p>
<pre>:~$ sudo mkdir /var/www/rainloop
:~$ sudo unzip rainloop-community-latest.zip -d /var/www/rainloop</pre>
<p><figure id="attachment_11451" aria-describedby="caption-attachment-11451" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11451" src="https://www.osradar.com/wp-content/uploads/2019/03/6-333.png" alt="6.- Decompress the file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/03/6-333.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/6-333-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/6-333-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/6-333-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/6-333-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/6-333-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/6-333-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11451" class="wp-caption-text">6.- Decompress the file</figcaption></figure></p>
<p>If you do not have unzip installed, you just need to install it with <code>sudo apt install unzip</code>.</p>
<p>It is now necessary to set the correct permissions for the RainLoop file folder.</p>
<pre>:~$ cd /var/www/rainloop
:~$ sudo find . -type d -exec chmod 755 {} \;
:~$ sudo find . -type f -exec chmod 644 {} \;</pre>
<p>Now, it is necessary to change the owner of the folder so that there are no problems in which the application can handle it.</p>
<pre>:~$ sudo chown -R www-data:www-data .</pre>
<p>The next step is to create a new <a href="https://www.osradar.com/how-to-configure-an-apache-virtual-host-on-debian-9/" target="_blank" rel="noopener noreferrer">VirtualHost</a> in Apache so that RainLoop can run properly. In addition, this will considerably improve the way we access the application.</p>
<pre>:~$ sudo nano /etc/apache2/sites-available/rainloop.conf</pre>
<p>And add the following:</p>
<pre>&lt;VirtualHost *:80&gt;
  ServerName yourdomain.com
  DocumentRoot "/var/www/rainloop/"

  ErrorLog "/var/log/apache2/rainloop_error_log"
  TransferLog "/var/log/apache2/rainloop_access_log"

  &lt;Directory /&gt;
    Options +Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Order deny,allow
    Allow from all
    Require all granted
  &lt;/Directory&gt;

  &lt;Directory /var/www/rainloop/data&gt;
    Options -Indexes
    Deny from all
  &lt;/Directory&gt;
&lt;/VirtualHost&gt;</pre>
<p><figure id="attachment_11452" aria-describedby="caption-attachment-11452" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11452" src="https://www.osradar.com/wp-content/uploads/2019/03/7-2.png" alt="7.- Creating a new virtual host for RainLoop" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/03/7-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/7-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/7-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/7-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/7-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/7-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/7-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11452" class="wp-caption-text">7.- Creating a new virtual host for RainLoop</figcaption></figure></p>
<p>Then, save the file and close it. To apply the changes, you need to enable the new virtualhost and then restart Apache.</p>
<pre>:~$ sudo a2ensite rainloop.conf
:~$ sudo systemctl reload apache2</pre>
<h1>4. Set up RainLoop using the web interface</h1>
<p>Now, you can access the RainLoop address from your web browser. Go to http://your-server/?admin to access to the admin panel.</p>
<p><figure id="attachment_11453" aria-describedby="caption-attachment-11453" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11453" src="https://www.osradar.com/wp-content/uploads/2019/03/8-1.png" alt="8.- Default admin page" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/03/8-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/8-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/8-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/8-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/8-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/03/8-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/8-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/8-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11453" class="wp-caption-text">8.- Default admin page</figcaption></figure></p>
<p>The default credentials are admin and 12345.</p>
<p>Once you have logged in, you will be able to change your password and review all the settings you want.</p>
<p><figure id="attachment_11454" aria-describedby="caption-attachment-11454" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11454" src="https://www.osradar.com/wp-content/uploads/2019/03/9-2.png" alt="9.- RainLoop admin panel" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/03/9-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/9-2-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/9-2-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/9-2-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/9-2-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/03/9-2-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/9-2-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/9-2-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11454" class="wp-caption-text">9.- RainLoop admin panel</figcaption></figure></p>
<p>For example, it is recommended to change the default administrative password.</p>
<p><figure id="attachment_11455" aria-describedby="caption-attachment-11455" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11455" src="https://www.osradar.com/wp-content/uploads/2019/03/10-3.png" alt="10.- Change the password" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/03/10-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/10-3-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/10-3-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/10-3-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/10-3-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/03/10-3-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/10-3-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/10-3-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11455" class="wp-caption-text">10.- Change the password</figcaption></figure></p>
<p>In the section of domains, you can configure the domains you want. Whether it&#8217;s a personal one or a more popular one like Gmail.</p>
<p><figure id="attachment_11456" aria-describedby="caption-attachment-11456" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11456" src="https://www.osradar.com/wp-content/uploads/2019/03/11-2.png" alt="11.- Domain section" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/03/11-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/11-2-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/11-2-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/11-2-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/11-2-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/03/11-2-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/11-2-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/11-2-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11456" class="wp-caption-text">11.- Domain section</figcaption></figure></p>
<p><figure id="attachment_11457" aria-describedby="caption-attachment-11457" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11457" src="https://www.osradar.com/wp-content/uploads/2019/03/12-2.png" alt="12 domain" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/03/12-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/12-2-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/12-2-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/12-2-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/12-2-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/03/12-2-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/12-2-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/12-2-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11457" class="wp-caption-text">12 domain</figcaption></figure></p>
<p>Next, go to the main screen of RainLoop and put your credentials.</p>
<h1>Conclusion</h1>
<p>RainLoop provides us with a modern interface for our email. It is especially useful when we have a personal mail server running.</p>
<p>Share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-rainloop-a-web-based-email-client-on-ubuntu-18-04/">Install RainLoop a web-based email client on Ubuntu 18.04</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/install-rainloop-a-web-based-email-client-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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>
		<item>
		<title>How to setup a mail server on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-setup-a-mail-server-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-setup-a-mail-server-on-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 04 Jul 2018 14:55:25 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Mail server]]></category>
		<category><![CDATA[Postflix]]></category>
		<category><![CDATA[Squirrelmail]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=4451</guid>

					<description><![CDATA[<p>The email did not need too much presentation as we all sent and received one. There are companies that provide us with the Email service and that is more than enough for the vast majority of users, but there is the possibility of having one on our own server. Companies are turning to be technologically [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-setup-a-mail-server-on-ubuntu-18-04/">How to setup a mail server on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The <strong>email</strong> did not need too much presentation as we all sent and received one. There are companies that provide us with the Email service and that is more than enough for the vast majority of users, but there is the possibility of having one on our own server.</p>
<p>Companies are turning to be technologically independent from other large companies and to be the ones that manipulate their data, including the most sensitive ones. However, it is important to bear in mind that depending on the infrastructure and personnel resources, there may be more disadvantages than benefits to taking this option.</p>
<p>In this article we are going to configure a personal mail server on our server with Ubuntu 18.04</p>
<h2>Let&#8217;s get to work</h2>
<h3><strong>1.-Upgrading the operating system</strong></h3>
<p>This is done to provide the latest software updates and security patches to improve server performance. First we log in as root user:</p>
<p><strong>             sudo -i</strong></p>
<p><figure id="attachment_4452" aria-describedby="caption-attachment-4452" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4452" src="https://www.osradar.com/wp-content/uploads/2018/06/1-20.png" alt="1.- Upgrading Ubuntu" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/1-20.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/1-20-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/1-20-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/1-20-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/1-20-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/1-20-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/1-20-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4452" class="wp-caption-text">1.- Upgrading Ubuntu</figcaption></figure></p>
<p>As root user, we write:</p>
<p><strong>           apt update &amp;&amp; apt -y upgrade</strong></p>
<p><figure id="attachment_4453" aria-describedby="caption-attachment-4453" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4453" src="https://www.osradar.com/wp-content/uploads/2018/06/2-20.png" alt="2.- Upgrading the system" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/2-20.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/2-20-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/2-20-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/2-20-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/2-20-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/2-20-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/2-20-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4453" class="wp-caption-text">2.- Upgrading the system</figcaption></figure></p>
<h2>2.-Installing Postfix</h2>
<p>Postfix is a free software/open source mail server, a software program for routing and sending email. It is simple and versatile. We will use it in this tutorial. Run this command on terminal for install it.</p>
<p><strong>            apt install postfix</strong></p>
<p>As soon as you finish the download and installation, we will skip this screen.</p>
<p><figure id="attachment_4454" aria-describedby="caption-attachment-4454" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4454" src="https://www.osradar.com/wp-content/uploads/2018/06/3-22.png" alt="3.- Installing postfix" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/3-22.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/3-22-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/3-22-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/3-22-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/3-22-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/3-22-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/3-22-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4454" class="wp-caption-text">3.- Installing postfix</figcaption></figure></p>
<p>We chose Internet Site and press enter.</p>
<p>We now place our domain</p>
<p><figure id="attachment_4455" aria-describedby="caption-attachment-4455" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4455" src="https://www.osradar.com/wp-content/uploads/2018/06/4-19.png" alt="4.- Configuring postfix" width="1366" height="736" srcset="https://www.osradar.com/wp-content/uploads/2018/06/4-19.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/4-19-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/4-19-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/4-19-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/4-19-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/4-19-1068x575.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/4-19-780x420.png 780w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4455" class="wp-caption-text">4.- Configuring postfix</figcaption></figure></p>
<p>And finally the installation is complete</p>
<p><figure id="attachment_4456" aria-describedby="caption-attachment-4456" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4456" src="https://www.osradar.com/wp-content/uploads/2018/06/5-20.png" alt="5.- Finishing the installation" width="1366" height="736" srcset="https://www.osradar.com/wp-content/uploads/2018/06/5-20.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/5-20-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/5-20-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/5-20-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/5-20-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/5-20-1068x575.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/5-20-780x420.png 780w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4456" class="wp-caption-text">5.- Finishing the installation</figcaption></figure></p>
<p>Once the installation is done we must restart the postfix service.</p>
<p><strong>             systemctl restart</strong></p>
<p><figure id="attachment_4457" aria-describedby="caption-attachment-4457" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4457" src="https://www.osradar.com/wp-content/uploads/2018/06/6-20.png" alt="6.- Restarting postfix" width="1366" height="736" srcset="https://www.osradar.com/wp-content/uploads/2018/06/6-20.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/6-20-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/6-20-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/6-20-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/6-20-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/6-20-1068x575.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/6-20-780x420.png 780w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4457" class="wp-caption-text">6.- Restarting postfix</figcaption></figure></p>
<p>In case of modifying the values we have placed, we can reconfigure the package with the command:</p>
<p><strong>dpkg-reconfigure postfix</strong></p>
<h2><strong>3.-Dovecot&#8217;s turn now</strong></h2>
<p><strong>Dovecot</strong> is an open source IMAP and POP3 server for GNU/Linux / UNIX-like systems, written with security in mind. To install it:</p>
<p>&nbsp;</p>
<p><figure id="attachment_4474" aria-describedby="caption-attachment-4474" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4474" src="https://www.osradar.com/wp-content/uploads/2018/06/8-17.png" alt="8.- Installing Dovecot" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/8-17.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/8-17-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/8-17-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/8-17-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/8-17-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/8-17-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/8-17-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4474" class="wp-caption-text">8.- Installing Dovecot</figcaption></figure></p>
<p>And then we start and enable the service:</p>
<p><strong>                systemctl start dovecot</strong></p>
<p>Next:</p>
<p><strong>                systemctl enable dovecot</strong></p>
<p><figure id="attachment_4475" aria-describedby="caption-attachment-4475" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4475" src="https://www.osradar.com/wp-content/uploads/2018/06/9-14.png" alt="9.- Starting dovecot" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/9-14.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/9-14-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/9-14-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/9-14-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/9-14-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/9-14-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/9-14-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4475" class="wp-caption-text">9.- Starting dovecot</figcaption></figure></p>
<h2><strong>4.-Installing SquirrelMail</strong></h2>
<p>SquirrelMail is a webmail application created by Nathan and Luke Ehresman and written in PHP. It can be installed on most web servers as long as it supports PHP and the web server has access to an IMAP server and another SMTP server. To download:</p>
<p><strong>            wget https://sourceforge.net/projects/squirrelmail/files/stable/1.4.22/squirrelmail-webmail-1.4.22.zip</strong></p>
<p><figure id="attachment_4476" aria-describedby="caption-attachment-4476" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4476" src="https://www.osradar.com/wp-content/uploads/2018/06/10-14.png" alt="10.- Donwloading squirrelmail" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/10-14.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/10-14-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/10-14-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/10-14-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/10-14-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/10-14-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/10-14-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4476" class="wp-caption-text">10.- Donwloading squirrelmail</figcaption></figure></p>
<p>Then we decompressed</p>
<p><strong>           unzip squirrelmail-webmail-1.4.22.zip</strong></p>
<p>We proceed to move it inside the web server and change its owner and permissions.</p>
<p><strong>            mv squirrelmail-webmail-1.4.22 /var/www/html/</strong></p>
<p><strong>            chown -R www-data:www-data /var/www/html/squirrelmail-webmail-1.4.22/</strong></p>
<p>and finally:</p>
<p><strong>           chmod 755 -R /var/www/html/squirrelmail-webmail-1.4.22/</strong></p>
<p><figure id="attachment_4477" aria-describedby="caption-attachment-4477" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4477" src="https://www.osradar.com/wp-content/uploads/2018/06/11-15.png" alt="11.- Installing squirrelmail" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/11-15.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/11-15-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/11-15-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/11-15-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/11-15-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/11-15-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/11-15-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4477" class="wp-caption-text">11.- Installing squirrelmail</figcaption></figure></p>
<p>It&#8217;s a good idea to change the name:</p>
<p><strong>             mv squirrelmail-webmail-1.4.22 /var/www/html/squirrelmail</strong></p>
<p>Before using Squirrelmail ask us to configure them. We can do it thanks to the configuration script that comes inside the conf folder.</p>
<p><strong>           perl /var/www/html/squirrelmail/config/conf.pl</strong></p>
<p><figure id="attachment_4478" aria-describedby="caption-attachment-4478" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4478" src="https://www.osradar.com/wp-content/uploads/2018/06/12-12.png" alt="12.- Configuring squirrelmail" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/12-12.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/12-12-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/12-12-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/12-12-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/12-12-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/12-12-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/12-12-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4478" class="wp-caption-text">12.- Configuring squirrelmail</figcaption></figure></p>
<p>Enter &#8220;2&#8221; to access the server options</p>
<p><figure id="attachment_4479" aria-describedby="caption-attachment-4479" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4479" src="https://www.osradar.com/wp-content/uploads/2018/06/13-8.png" alt="13.- Configuring squirrelmail" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/13-8.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/13-8-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/13-8-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/13-8-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/13-8-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/13-8-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/13-8-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4479" class="wp-caption-text">13.- Configuring squirrelmail</figcaption></figure></p>
<p>And now &#8220;1&#8221; to define the domain.</p>
<p><figure id="attachment_4480" aria-describedby="caption-attachment-4480" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4480" src="https://www.osradar.com/wp-content/uploads/2018/06/14-9.png" alt="14.- Entering the domain" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/14-9.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/14-9-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/14-9-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/14-9-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/14-9-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/14-9-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/14-9-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4480" class="wp-caption-text">14.- Entering the domain</figcaption></figure></p>
<p>we return by pressing &#8220;r&#8221;. Enter the general options by typing &#8220;4&#8221; Then in option &#8220;11&#8221; change &#8220;false&#8221; to &#8220;true&#8221; by typing &#8220;y&#8221;.</p>
<p><figure id="attachment_4481" aria-describedby="caption-attachment-4481" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4481" src="https://www.osradar.com/wp-content/uploads/2018/06/15-9.png" alt="15.-Configuring squirrelmail" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/15-9.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/15-9-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/15-9-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/15-9-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/15-9-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/15-9-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/15-9-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4481" class="wp-caption-text">15.-Configuring squirrelmail</figcaption></figure></p>
<p>We leave the script and we have to go to the web browser to verify that the installation has been successful.</p>
<p><strong>             http://IP_SERVER/squirrelmal</strong></p>
<p>&nbsp;</p>
<p><figure id="attachment_4483" aria-describedby="caption-attachment-4483" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4483" src="https://www.osradar.com/wp-content/uploads/2018/06/16-9.png" alt="16.- Squirrelmail on browser" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/16-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/16-9-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/16-9-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/16-9-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/16-9-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/16-9-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/16-9-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4483" class="wp-caption-text">16.- Squirrelmail on browser</figcaption></figure></p>
<h2>5.- creating users for the mail server</h2>
<p>To log in from the web interface, we must create a user name and password.</p>
<p><strong>           useradd user1</strong></p>
<p><strong>           passwd user1</strong></p>
<p><figure id="attachment_4484" aria-describedby="caption-attachment-4484" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4484" src="https://www.osradar.com/wp-content/uploads/2018/06/17-7.png" alt="17.- Creating users" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/17-7.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/17-7-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/17-7-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/17-7-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/17-7-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/17-7-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/17-7-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4484" class="wp-caption-text">17.- Creating users</figcaption></figure></p>
<p>then we create a folder inside the apache location and make it its default folder.</p>
<p><strong>            mkdir /var/www/html/user1</strong></p>
<p><strong>            usermod -m -d /var/www/html/user1 user1</strong></p>
<p>then change the owner of the folder for the new user</p>
<p><strong>             chown -R user1:user1 /var/www/html/user1</strong></p>
<p><figure id="attachment_4501" aria-describedby="caption-attachment-4501" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4501" src="https://www.osradar.com/wp-content/uploads/2018/06/19-7.png" alt="19.- Changing owner user1 folder" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/19-7.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/19-7-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/19-7-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/19-7-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/19-7-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/19-7-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/19-7-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4501" class="wp-caption-text">19.- Changing owner user1 folder</figcaption></figure></p>
<h2><strong>6.- Logging in to SquirrelMail</strong></h2>
<p>Finally we access the web interface and log in:</p>
<p><figure id="attachment_4502" aria-describedby="caption-attachment-4502" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4502" src="https://www.osradar.com/wp-content/uploads/2018/06/21-7.png" alt="21.- Logging squirrelmail" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/21-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/21-7-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/21-7-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/21-7-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/21-7-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/21-7-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/21-7-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4502" class="wp-caption-text">21.- Logging squirrelmail</figcaption></figure></p>
<p>And finally we see the interface working.</p>
<p><figure id="attachment_4503" aria-describedby="caption-attachment-4503" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4503" src="https://www.osradar.com/wp-content/uploads/2018/06/22-6.png" alt="22.- Squirrelmail" width="1366" height="635" srcset="https://www.osradar.com/wp-content/uploads/2018/06/22-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/22-6-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/22-6-768x357.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/22-6-1024x476.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/22-6-696x324.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/22-6-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/22-6-903x420.png 903w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4503" class="wp-caption-text">22.- Squirrelmail</figcaption></figure></p>
<p>Note: If at the moment of logging in with the username and password, you give us an error. It&#8217;s most likely an error in permissions.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-setup-a-mail-server-on-ubuntu-18-04/">How to setup a mail server on Ubuntu 18.04?</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-setup-a-mail-server-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>15</slash:comments>
		
		
			</item>
	</channel>
</rss>
