Check if Linux has Postfix and Dovecot installed
The check command is as follows:
Rpm-qa |grep postfix;
Rpm–qa |grep Dovecot;
If no data is displayed indicating that no installation is required, download the software installation online;
-  
Modify the computer name:
# vi /etc/ Sysconfig/network
Modify hostname=linuxmail.cn
-  
Modify the Send server configuration file:
1. # vim  /ETC/POSTFIX/MAIN.CF
2. 113 inet_interfaces = all # on which interface to provide service
3. 414 home_mailbox = maildir/ #邮件存储位置和格式
-
To modify the configuration file for the receiving server:
1. # vim/etc/dovecot/dovecot.conf
protocols = IMAP POP3 LMTP # support Post Office Protocol
2. # vim/etc/dovecot/conf.d/10-auth.conf
Disable_plaintext_auth = no# Allow plaintext password authentication
3. # vim/etc/dovecot/conf.d/10-ssl.conf
SSL = no # disabled S
4. # vim/etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:~/maildir # message storage format and location
5. # Vim/etc/pam.d/dovecot
Auth Required pam_nologin.so
Auth include System-auth
Account include System-auth
Sesssion include System-auth
-  
Restart the service
service postfix Restart
service dovecot restart
 
Build User: User attribute preferably set to Nologin;
- 7
Linux Mail Service is set up, client settings can be done;
Teach you how to set up a Linux mail server postfix