免费注册 查看新帖 |

Chinaunix

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

[Mail] sasl认证prob --------邀请大家都来参与 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-09 17:24 |只看该作者 |倒序浏览
独立于系验证方法,只是用于sasl。 (不使用登陆系统的密码)


==========================================
cat /usr/lib/sasl2/smtpd.conf
pwcheck_method: auxprop   ///用外部程序来验证
#saslauthd
auxprop_plugin: sasldb  //使用sasldb
mech_list: plain login
saslauthd_path: /var/run/saslauthd/mux



++++++++++++++++++++++++++++++++++++


cat /etc/sysconfig/saslauthd

# Directory in which to place saslauthd's listening socket, pid file, and so
# on.  This directory must already exist.
SOCKETDIR=/var/run/saslauthd

# Mechanism to use when checking passwords.  Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled with the ablity to use.
#MECH=shadow

# Additional flags to pass to saslauthd on the command line.  See saslauthd(
# for the list of accepted flags.
FLAGS=sasldb2  //sasldb2

++++++++++++++++++++++
postfix  SASL setting


smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_client
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination


smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = cyrus

+++++++++++++++++++++++

testsaslauthd 系统用户成功!



-----------------------------------------------
postfix虚拟用户设置

virtual_gid_maps = static:5000
virtual_mailbox_base = /var/spool/mail/vhosts
virtual_mailbox_domains = test.cn  ///虚拟域名
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_transport = virtual
virtual_uid_maps = static:5000
-----------------------------------------------


让虚拟用户也使用sasl,不知道如何设置,请各位高手,帮忙分析一下。






[ 本帖最后由 zhg2008 于 2007-11-9 17:26 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-12-25 14:30 |只看该作者

回复 #1 zhg2008 的帖子

自己顶一下
top top
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP