解决中小局域网内邮件服务的问题,使用postfix与dovecot搭建SMTP和POP3服务器。
安装服务器组件
apt-get install –y postfix dovecot-pop3d mailutils
其中mailutils,是mail命令程序。如果不用命令行方式的话,可以不安装。
安装postfix的时候,会提示要求选择邮件服务器类型,这里选择Internet Site。
No configuration:
Should be chosen to leave the current configuration unchanged.
Internet site:
Mail is sent and received directly using SMTP.
Internet with smarthost:
Mail is received directly using SMTP or by running a utility such as fetchmail. Outgoing mail is sent using a smarthost.
Satellite system:
All mail is sent to another machine, called a 'smarthost', for delivery.
Local only:
The only delivered mail is the mail for local users. There is no network.
进而会提示输入邮件域名,这里按需填写。(例如mail.wa.cn)
配置环境
邮件服务器IP地址=192.168.31.73,测试用户名为test(密码123)、duanjsh(密码123)。测试PC机一台,与邮件服务器三层可达。
修改/etc/hosts,把相应域名加入到hosts中。

本文详细介绍如何使用postfix和dovecot在中小局域网内搭建邮件服务,包括服务器组件安装、配置环境、参数调整及客户端配置步骤,实现邮件的发送与接收。
最低0.47元/天 解锁文章
1344

被折叠的 条评论
为什么被折叠?



