<?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>Postflix Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/postflix/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 04 Jul 2018 14:55:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<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>
<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>As root user, we write:</p>
<p><strong>           apt update &amp;&amp; apt -y upgrade</strong></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>
<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>
<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>We chose Internet Site and press enter.</p>
<p>We now place our domain</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>And finally the installation is complete</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>Once the installation is done we must restart the postfix service.</p>
<p><strong>             systemctl restart</strong></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>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>
<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>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>
<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>
<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>
<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>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>
<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>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>
<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>Enter &#8220;2&#8221; to access the server options</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>And now &#8220;1&#8221; to define the domain.</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>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>
<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>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>
<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>
<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>
<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>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>
<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>
<h2><strong>6.- Logging in to SquirrelMail</strong></h2>
<p>Finally we access the web interface and log in:</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>And finally we see the interface working.</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>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>
