如何设置Catch-All的电子邮件地址与Stapling(Postfix)

Catch-All电子邮件帐户用于接收到的所有电子邮件以域名发送给您。由它帮助,以避免因拼错地址而丢失的电子邮件。在使用别名地址您可能会收到垃圾邮件,并且很多反弹的消息会发送到any-mail(at)yourdomain.com。 本教程将帮助您设置Catch-All的电子邮件地址与Stapling。
第1步.配置 Catch-All 账户
编辑 /etc/postfix/virtual 并配置别名地址如下所示。
# vim /etc/postfix/virtual
@example.com myuser
如果你想在Catch-All添加例外特定帐户,也加入他们在 /etc/postfix/virtual 文件。下面的配置将发送的所有电子邮件用户“myuser”除外的电子邮件,如:info@example.com and support@example.com
@example.com myuser
info@example.com  info
support@example.com support
保存在/ etc /Stapling/虚拟文件并执行以下命令。
# postmap /etc/postfix/virtual
2.更新Postfix配置文件
编辑Postfix配置文件 /etc/postfix/main.cf ,在文件末尾添加以下行。
# vim /etc/postfix/main.cf
virtual_alias_maps = hash:/etc/postfix/virtual
3.重新加载Postfix服务器
改变之后,我们需要重新启动服务器以激活新设置addedUse,以下命令来重新启动,加载postfix的配置。
# service postfix reload
您已经完成了StaplingCatch-All的电子邮件设置和配置。点击 这里了解更多 catch all 帐户。
赞(52) 打赏
未经允许不得转载:优客志 » 系统运维
分享到:

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏