1.安装Dovecot服务程序。
[root@dsrw ~]# dnf install -y dovecot
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
上次元数据过期检查:0:46:23 前,执行于 2022年12月23日 星期五 12时46分54秒。
依赖关系解决。
================================================================================
软件包 架构 版本 仓库 大小
================================================================================
Installing:
dovecot x86_64 1:2.2.36-5.el8 AppStream 4.6 M
安装依赖关系:
clucene-core x86_64 2.3.3.4-31.20130812.e8e3d20git.el8 AppStream 590 k
事务概要
================================================================================
安装 2 软件包
总计:5.1 M
安装大小:17 M
下载软件包:
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
Installing : clucene-core-2.3.3.4-31.20130812.e8e3d20git.el8.x86_64 1/2
运行脚本 : dovecot-1:2.2.36-5.el8.x86_64 2/2
Installing : dovecot-1:2.2.36-5.el8.x86_64 2/2
运行脚本 : dovecot-1:2.2.36-5.el8.x86_64 2/2
验证 : clucene-core-2.3.3.4-31.20130812.e8e3d20git.el8.x86_64 1/2
验证 : dovecot-1:2.2.36-5.el8.x86_64 2/2
Installed products updated.
已安装:
dovecot-1:2.2.36-5.el8.x86_64
clucene-core-2.3.3.4-31.20130812.e8e3d20git.el8.x86_64
完毕!
2.配置Dovecot服务程序。
[root@dsrw ~]# vim /etc/dovecot/dovecot.conf
24 protocols = imap pop3 lmtp
25 disable_plaintext_auth=no
49 login_trusted_networks=192.168.10.0/24
3.配置邮件格式与存储路径,启动服务。
[root@dsrw ~]# vim /etc/dovecot/conf.d/10-mail.conf
25 mail_location = mbox:~/mail:INBOX=/var/mail/%u
[root@mail ~]# su - lanzeou
[lanzeou@mail ~]$ mkdir -p mail/.imap/INBOX
[lanzeou@mail ~]$ exit
注销
[root@mail ~]# systemctl restart dovecot
[root@mail ~]# systemctl enable dovecot
Created symlink /etc/systemd/system/multi-user.target.wants/dovecot.service → /usr/lib/systemd/system/dovecot.service.
4.配置防火墙
[root@mail ~]# firewall-cmd --permanent --zone=public --add-service=imap
success
[root@mail ~]# firewall-cmd --permanent --zone=public --add-service=pop3
success
[root@mail ~]# firewall-cmd --permanent --zone=public --add-service=smtp
success
[root@mail ~]# firewall-cmd --reload
Success
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容