How to Make Mail Server on CentOS 7

April 29, 2017

Environment

CentOS 7.3.1611 (Using VPS)

 

1.Setting SMTP-Auth

1-1. Install cyrus-sasl

 

1-2. Change Settings

 

1-3. Boot/Auto-reboot setting

 

2.Install Postfix

2-1. Install

 

2-2. Setting

 

2-3. Boot/Auto-reboot setting

 

3.Install Dovecot

3-1. Install

 

3-2. Setting

Edit(/etc/dovecot/conf.d/10-auth.conf)

Edit(/etc/dovecot/conf.d/10-ssl.conf)

Edit(/etc/dovecot/conf.d/10-master.conf)

 

3-3. Boot/Auto-reboot setting

 

4.メールユーザーの設定

4-1. Make directory for mail user

 

4-2. Add user

 

4-3. Set password

 

4-4. Set user for Auth

 

4-5. Change owner

 

4-6. Confirmation

 

4-7. Change privilege ( from sasldb2 to postfix)

 

5.Setting Firewall

5-1. Open port for mail

 

5-2. Confirmation

 

6.Confirmation from Mailer

6-1. Set below in your mailer

Once you could send, it’s done.

Reference:
http://qiita.com/tachitechi/items/895bf9c63356ee0751b5