你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu 9.04下架构Extmail邮件系统

[日期:2009-11-05] 来源:forum.ubuntu.org.cn  作者:阳光 [字体:大 中 小]
3.由于postfix处于chroot,要想调用到saslauthd 必须更改socket文件
mkdir -p /var/spool/postfix/var/run/saslauthd
gedit /etc/postfix/sasl/smtpd.conf

创建smtpd.conf,并且内容如下:

pwcheck_method:saslauthd
mech_list:plain login
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: extmail
sql_password: extmail
sql_database: extmail
log_level:7
sql_select: SELECT password FROM mailbox WHERE username='%u@%r' and domain='%r'

4.更改main.cf 文件

gedit /etc/postfix/main.cf

###########SASL######################
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks,reject_sender_login_mismatch, permit_sasl_authenticated,reject_unknown_sender_domain, reject_non_fqdn_hostname,reject_non_fqdn_sender, reject_non_fqdn_recipient,reject_unknown_recipient_domain, reject_unauth_destination,reject_unauth_pipelining, reject_invalid_hostname, check_recipient_maps

加入以上的内容

添加用户
adduser postfix sasl

linux
相关资讯       Ubuntu服务器  Extmail 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款