Reader small image

You're reading from  Linux Networking Cookbook

Product typeBook
Published inJun 2016
Publisher
ISBN-139781785287916
Edition1st Edition
Concepts
Right arrow
Authors (2):
Gregory Boyce
Gregory Boyce
author image
Gregory Boyce

Gregory Boyce is a technologist with nearly 20 years' experience using and managing Linux systems. When he's not at work or spending time with his wife and two daughters, he plays around with new technologies. Gregory has spent the last 15 years working at Akamai Technologies, where he has worked in roles ranging from Network Operations, Internal IT, Information Security, Software Testing, and Professional Services. Currently, he heads up the Linux OS team that manages Akamai's custom Linux operating system, which runs on their massively distributed customer-facing network.
Read more about Gregory Boyce

View More author details
Right arrow

Configuring IMAP


Now that you're able to get e-mail delivered, you can read e-mail from the local mail spool by using the mail command. In general, it is more useful to be able to retrieve your e-mail from off the box however, which typically means webmail, pop3 or IMAP. In this recipe, we're going to look at setting up a Dovecot e-mail server.

How to do it...

  1. Install the dovecot-imap package:

    sudo apt-get install dovecot-imap
    
  2. Configure the SSL cert and key:

    sed 's|^ssl_cert .*|ssl_cert = </path/to/cert|g' /etc/dovecot/conf.d/10-ssl.conf
    sed 's|^ssl_key .*|ssl_key = </path/to/key|g' /etc/dovecot/conf.d/10-ssl.conf
    
  3. Configure the mail server to require TLS by editing /etc/dovecot/conf.d/10-master.conf and set port = 0 under inet_listener imap.

  4. Restart the service:

    service dovecot restart
    

How it works…

Ubuntu provides a number of different packages for Dovecot, which provide a number of different services like imap, pop3 and manage sieve (simplified e-mail filtering).

Ubuntu ships these with...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Linux Networking Cookbook
Published in: Jun 2016Publisher: ISBN-13: 9781785287916

Authors (2)

author image
Gregory Boyce

Gregory Boyce is a technologist with nearly 20 years' experience using and managing Linux systems. When he's not at work or spending time with his wife and two daughters, he plays around with new technologies. Gregory has spent the last 15 years working at Akamai Technologies, where he has worked in roles ranging from Network Operations, Internal IT, Information Security, Software Testing, and Professional Services. Currently, he heads up the Linux OS team that manages Akamai's custom Linux operating system, which runs on their massively distributed customer-facing network.
Read more about Gregory Boyce