免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3349 | 回复: 0
打印 上一主题 下一主题

[Mail] Postfix发件人地址只能通过Generic修改问题! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-28 08:39 |只看该作者 |倒序浏览
很久没摸postfix,昨天在家里部署了DNS,就试了安装2台postfix服务器互发邮件,但是却发现发件人的地址总是有些问题。

根据官方的文档,对于发出的邮件的发件人地址的定义是在:

  1. /etc/postfix/main.cf:
  2.     myorigin = $myhostname (default: send mail as "user@$myhostname")
  3.     myorigin = $mydomain   (probably desirable: "user@$mydomain")
复制代码
改完这两个参数,并且确认了主机名,但是发出去的邮件始终是 @localhost.localdomain.

最后,没有办法,只有在 /etc/postfix/generic 文件里,添加了

  1. @localhost.localdomain          @sunnysoung.org
复制代码
我觉得启用generic是没有必要的,但是没有找到问题所在,附上我的配置,请教各位了。

  1. [root@Server2 ~]# postconf -n
  2. alias_database = hash:/etc/aliases
  3. alias_maps = hash:/etc/aliases
  4. command_directory = /usr/sbin
  5. config_directory = /etc/postfix
  6. daemon_directory = /usr/libexec/postfix
  7. debug_peer_level = 2
  8. html_directory = no
  9. inet_interfaces = all
  10. mail_owner = postfix
  11. mailq_path = /usr/bin/mailq.postfix
  12. manpage_directory = /usr/share/man
  13. mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
  14. mydomain = sunnysoung.org
  15. myhostname = mail.sunnysoung.org
  16. mynetworks = 172.27.0.0/16, 127.0.0.0/8
  17. mynetworks_style = host
  18. myorigin = $mydomain
  19. newaliases_path = /usr/bin/newaliases.postfix
  20. queue_directory = /var/spool/postfix
  21. readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
  22. sample_directory = /usr/share/doc/postfix-2.3.3/samples
  23. sendmail_path = /usr/sbin/sendmail.postfix
  24. setgid_group = postdrop
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP