您现在的位置是:首页 > 日记日记
centos 搭建邮件服务
薄荷2022-06-02【日记】1人已围观
简介centos 搭建邮件服务
Postfix、Dovecot 安装
yum -y install postfix dovecot
配置 smtps
vi /etc/postfix/master.cf
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
Postfix 设为自动启动并启动该服务
systemctl enable postfix.service
systemctl start postfix.service
/var/log/maillog 日志文件
配置 Dovecot
vi /etc/dovecot/dovecot.conf
ssl_cert =
ssl_key =
protocols = imap pop3 lmtp
listen = *
mail_location = Maildir:~/Maildir
disable_plaintext_auth = no
修改 master.conf
vi /etc/dovecot/conf.d/10-master.conf
unix_listener /var/spool/postfix/private/auth {
mode = 0666
}
dovecot 设为自动启动并启动该服务
systemctl enable dovecot.service
systemctl start dovecot.service
添加用户
useradd test
passwd test
测试
su test
echo "Mail Content" | mail -s "Mail Subject" xxxx@xxx.com
Tags:
上一篇:centos 安装typecho