We therefore need to add this general purpose scripting language on 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 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 setup a FQDN, we can now go ahead and install the 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: 127.0.0.1 localhost 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: 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 email.ĭ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, MSOutlook, Thunderbird, or Roundcube.ĭirectMail is an Alibaba Cloud SMTP service for sending notifications and batch emails.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |