postfix 配置伪邮箱投递到指定邮箱

发表时间:2018-09-29 9:34 | 分类:Linux | 浏览:987 次

第一步 修改main.cf文件,修改如下配置

local_recipient_maps =
luser_relay = admin@nbhao.org

第二步

打开 /etc/postfix/canonical ,添加如下内容

/^.*$/ admin@nbhao.org

运行命令

postmap canonical

第三步

修改 /etc/postfix/main.cf 文件,添加修改如下

canonical_maps = hash:/etc/postfix/canonical

第四步

重启postfix

参考链接:https://serverfault.com/questions/234335/how-can-i-set-up-postfix-so-that-all-email-sent-on-my-dev-box-gets-routed-to-the

本文标签:

本文链接:https://www.sijitao.net/2757.html

欢迎您在本博客中留下评论,如需转载原创文章请注明出处,谢谢!

一键脚本 博客历程 留言联系 文章归档 网站地图 谷歌地图
Copyright © 2010-2024 章郎虫博客 All Rights Reserved.