• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How To Install Dovecot on Ubuntu 18.04 & 16.04 LTS

Written by Rahul, Updated on May 6, 2019

This tutorial will help you to install Dovecot on Ubuntu systems. Dovecot package provides service for POP/IMAP protocols. With these protocols, you can access emails accounts from remote clients.

Step 1 – Install Dovecot on Ubuntu

Dovecot packages are available under default Ubuntu repositories. You can install Dovecot on Ubuntu by running a single command. Open a terminal and execute below command:

sudo apt install dovecot

Step 2 – Configure Dovecot

Dovecot is a service used for providing POP/POP3s and IMAP/IMAPs protocols. POP/IMAP protocols are used for fetching emails from email accounts.

Edit dovecot configuration file and search for below lines and update as below.

# vim /etc/dovecot/dovecot.conf
protocols = imap
listen = *, ::
mail_location = mbox:~/mail:INBOX=/var/mail/%u

After doing changes just restart dovecot services to reload the configuration changes.

service dovecot restart

Step 3 – Verify Dovecot Setup

Test your dovecot setup by fetching emails from your email accounts using IMAP protocol. mutt is a utility to use for fetch emails.

mutt -f imap://username:[email protected]

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • (Solved) apt-add-repository command not found – Ubuntu & Debian 0
  • How to Install .NET Core on Debian 10 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy