Skip to content
Home ยป Installing the UW-IMAP and POP3 Server

Installing the UW-IMAP and POP3 Server

Installing the UW-IMAP and POP3 Server in Linux


1. Introduction

UW-IMAP (University of Washington IMAP) server provides both:

  • IMAP (Internet Message Access Protocol)
  • POP3 (Post Office Protocol)

๐Ÿ‘‰ It allows users to access and manage emails stored on the server using email clients like Outlook, Thunderbird, etc.


2. Role in Email System

SMTP (Postfix) โ†’ Mail Server โ†’ UW-IMAP/POP3 โ†’ User (Mail Client)
  • Postfix โ†’ sends mail
  • UW-IMAP/POP3 โ†’ allows users to read mail

3. Requirements Before Installation

  • Linux system (Ubuntu / CentOS)
  • Root or sudo access
  • Mail server (Postfix recommended)
  • Internet connection

4. Installing UW-IMAP Server


4.1 On Ubuntu / Debian

sudo apt update
sudo apt install dovecot-imapd dovecot-pop3d

๐Ÿ“Œ Note: UW-IMAP is outdated, so Dovecot is used as modern alternative.


4.2 On RHEL / CentOS

sudo yum install dovecot

5. Main Configuration File

/etc/dovecot/dovecot.conf

6. Basic Configuration

Edit configuration:

sudo vi /etc/dovecot/dovecot.conf

6.1 Enable Protocols

protocols = imap pop3

6.2 Mail Location

mail_location = maildir:~/Maildir

6.3 Authentication

disable_plaintext_auth = no

7. Starting and Managing Service


Start Dovecot

sudo systemctl start dovecot

Enable at Boot

sudo systemctl enable dovecot

Check Status

sudo systemctl status dovecot

Restart Service

sudo systemctl restart dovecot

8. Required Ports

ProtocolPortSecure Port
POP3110995
IMAP143993

9. Firewall Configuration

sudo ufw allow 110
sudo ufw allow 143

For CentOS:

firewall-cmd --permanent --add-service=imap
firewall-cmd --permanent --add-service=pop3
firewall-cmd --reload

10. Creating Mail Directory

mkdir -p ~/Maildir

11. Testing IMAP/POP3 Server

Using Telnet

telnet localhost 110   # POP3
telnet localhost 143   # IMAP

Using Mail Client

  • Configure:
    • Username
    • Password
    • Server IP

12. Real-World Example

  • Postfix + Dovecot setup:
    • Postfix โ†’ sends emails
    • Dovecot โ†’ allows users to read emails

13. Advantages

  • Supports both POP3 and IMAP
  • Secure communication
  • Multi-device email access
  • Easy integration with Postfix

14. Common Issues

  • Mail directory not created
  • Ports blocked by firewall
  • Authentication errors
  • Service not running

15. Conclusion

Installing UW-IMAP (or modern Dovecot) enables Linux systems to retrieve and manage emails efficiently. Combined with Postfix, it creates a complete email server solution, widely used in enterprise and cloud environments.