Debian10.2配置邮件服务器postfix+dovecot

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

解决中小局域网内邮件服务的问题,使用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中。


                
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值