Linux运维工程师技术文档十二(邮件服务)

192.168.10.50

默认安装的

cd /etc/po

cd /etc/postfix/

vim main.cf

systemctl restart postfix

systemctl status postfix

yum -y install mailx

mail -u qiangqiang

yum -y install dovecot

cd /etc/dovecot/    收邮件服务

ls

vim dovecot.conf

cd conf.d/

vim 10-auth.conf

启用用户名认证

vim 10-mail.conf

vim 10-ssl.conf

mkdir -p /var/mail/  .imap/INBOX

systemctl enable dovecot 启动起来

systemctl start  dovecot

systemctl status dovecot

yum -y install cyrus-sasl    支持我们的认证

yum -y install cyrus-sasl-devel 工具包

rpm -qa | grep cyrus 查看安装的内容

基于用户名密码的邮件中继

systemctl enable saslauthd

systemctl start saslauthd

cd /etc/postfix/

vim main.cf

重启服务

systemctl restart postfix

telnet mail.pip.cc

yum -y install telnet

telnet mail.pip.cc 25

ehlo localhost

quit

 

资源下载: