

We can now pull a free SSL certificate from Let's Encrypt using Certbot in order to enable SSL/TLS support on our mail server. Step 4: Installing Let's Encrypt SSL Certificate Press Y and hit Enter when prompted to confirm the installation.
#Squirrelmail koblenz install#
To do this, run the command below: $ sudo apt-get install php libapache2-mod-php Therefore, we need to install this general-purpose scripting language in our server for the email client to function. Then, we can now use Ubuntu's Advanced Package Manager to install Apache: $ sudo apt-get install apache2 Step 3: Installing PHP
#Squirrelmail koblenz update#
This is very important because SquirrelMail requires a web server to function.įirst, update the software index by running the command below: $ sudo apt-get update Once we have set up a FQDN, we can now go ahead and install Apache web server. Reboot the server using the command below: $ sudo reboot Step 2: Installing Apache # The following lines are desirable for IPv6 capable hosts Remember to replace 198.18.0.14 with the IP address associated with your ECS instance. Save the file by pressing CTRL+X, Y and Enter.Īdd two lines below the localhost entry as shown below. Replace the existing hostname with mail: MailĮdit the hosts file /etc/hosts: $ sudo nano /etc/hosts Then open the file /etc/hostname: $ sudo nano /etc/hostname Press CTRL+X, Y and Enter to save the file Look for the line preserve_hostname and change it from false to true $ preserve_hostname true

First, edit the /etc/cloud/cloud.cfg file: $ sudo nano /etc/cloud/cloud.cfg Before we begin, we need to setup a Fully Qualified Domain Name (FQDN). Step 1: Changing your Hostname to a Fully Qualified Domain NameĬonnect to your Ubuntu 16.04 server. You need to allow the following ports on your ECS Instance via the security group for emails to work: An ECS instance running Ubuntu 16.04 Operating System.Alibaba Cloud Account(Signup now to get one).In this guide, we will cover the steps for configuring a full-blown two way email server using Postfix, Dovecot, Alibaba Cloud DirectMail and SquirrelMail on an Ubuntu 16.04 Elastic Compute Service (ECS) instance.įor the sake of clarity, we will use 198.18.0.14 as a hypothetical public IP address of your Alibaba Cloud ECS instance.

The service is stable and affordable and charges depend on usage. Postfix is a free Open-source software application that works as a Mail Transfer Agent (MTA) for routing and delivering electronic mails.Īccording to a December 2017 research conducted by E-Soft, the SMTP (Simple Mail Transfer Protocol) server commands a 33% market share of all email-servers.ĭovecot is an Open-source MDA (Mail Delivery Agent) and is responsible for delivering emails to local recipients' mailboxes on a server.ĭovecot implements IMAP (Internet Message Access Protocol) and POP3 (Post Office Protocol) and hence remains a good choice for accessing emails via (Mail User Agents) MUAs such as Squirrelmail, Ms Outlook, Thunderbird or Roundcube.ĭirectMail is a record-breaking Alibaba Cloud SMTP service for sending notifications and batch emails. Tech Share is Alibaba Cloud's incentive program to encourage the sharing of technical knowledge and best practices within the cloud community. By Francis Ndungu, Alibaba Cloud Tech Share Author.
