»

Building Your Own Mail Server

Log — Tags: , — Posted by Starck on July 5, 2013


Requirments:


Installation

主要參考 Linode Library 的這篇教學

Postfix Settings

/etc/postfix/main.cf

/etc/postfix/mysql-virtual-mailbox-domains.cf:

/etc/postfix/mysql-virtual-mailbox-maps.cf:

/etc/postfix/mysql-virtual-alias-maps.cf:

測試:


Dovecot Settings

In this section, you’ll configure Dovecot to:

  • Set the IMAP, POP3, and LMTP protocols
  • Define the mail location
  • Use MySQL for username/password lookups for authentication
  • Configure needed sockets for authentication and LMTP
  • Require SSL encryption

You’ll modify a total of 7 Dovecot configuration files. Here’s the list:

  • /etc/dovecot/dovecot.conf: Dovecot’s main configuration file
  • /etc/dovecot/conf.d/10-mail.conf: Deals with the server’s file system
  • /etc/dovecot/conf.d/10-auth.conf: Defines how user authentication is handled
  • /etc/dovecot/conf.d/auth-sql.conf.ext: New authentication file for SQL-type authentication
  • /etc/dovecot/dovecot-sql.conf.ext: An included authentication file with the MySQL connection parameters
  • /etc/dovecot/conf.d/10-master.conf: Where sockets are configured
  • /etc/dovecot/conf.d/10-ssl.conf: Where SSL-related parameters are specified


/etc/dovecot/dovecot-sql.conf.ext:

如果要開啟 pop3 110 port, /etc/dovecot/conf.d/10-master.conf:


PostfixAdmin permission issue (myself)

/etc/dovecot/conf.d/10-master.conf:


Reference

(c) 2024 Starck Lin | powered by WordPress