免费注册 查看新帖 |

Chinaunix

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

[服务应用] postfix 虚拟用户配置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-06-22 23:28 |只看该作者 |倒序浏览
本帖最后由 me0379 于 2013-06-23 09:58 编辑

postfix  虚拟用户设置   设置完成后遇到问题 认证不成功   



cat /var/log/maillog  出现下面的提示

Jun 22 15:19:57 ASUS postfix/master[14316]: reload configuration /etc/postfix
Jun 22 15:20:25 ASUS postfix/smtpd[14954]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Jun 22 15:20:25 ASUS postfix/smtpd[14954]: connect from ns1.ly.com[192.168.1.111]
Jun 22 15:21:11 ASUS postfix/smtpd[14954]: warning: SASL authentication failure: could not verify password
Jun 22 15:21:11 ASUS postfix/smtpd[14954]: warning: ns1.ly.com[192.168.1.111]: SASL LOGIN authentication failed: generic failure
Jun 22 15:26:36 ASUS postfix/smtpd[14954]: timeout after AUTH from ns1.ly.com[192.168.1.111]
Jun 22 15:26:36 ASUS postfix/smtpd[14954]: disconnect from ns1.ly.com[192.168.1.111]



./authtest  命令测试出现下面的提示
Jun 22 15:30:12 ASUS postfix/anvil[14956]: statistics: max connection rate 1/60s for (smtp:192.168.1.111) at Jun 22 15:20:25
Jun 22 15:30:12 ASUS postfix/anvil[14956]: statistics: max connection count 1 for (smtp:192.168.1.111) at Jun 22 15:20:25
Jun 22 15:30:12 ASUS postfix/anvil[14956]: statistics: max cache size 1 at Jun 22 15:20:25


cat /var/log/messages


Jun 22 15:20:10 ASUS saslauthd[14344]: server_exit     : master exited: 14344
Jun 22 15:20:11 ASUS saslauthd[14942]: detach_tty      : master pid is: 14942
Jun 22 15:20:11 ASUS saslauthd[14942]: ipc_init        : listening on socket: /var/run/saslauthd/mux


smtpd.conf 配置
pwcheck_method:authdaemond
authdaemond_path:/usr/local/courier-authlib/var/spool/authdaemon/socket


我是刚给开始学习linux  还不到一个月 ,有很多问题还不懂,如果有大神知道还望说的易懂点~~~
小弟不胜感激~~~





用yum 装了 cyrus-sasl  全部相关软件后
maillog  日志 提示没有变化

messages  
比以前多出了几个提示
Jun 23 09:43:44 ASUS postfix/smtpd[15696]: sql_select option missing
Jun 23 09:43:44 ASUS postfix/smtpd[15696]: auxpropfunc error no mechanism available
Jun 23 09:43:44 ASUS postfix/smtpd[15696]: auxpropfunc error invalid parameter supplied


红色的部分解决了  就是多安装了两个软件 之后删了就好   不删看别人的文章对postfix 没什么影响

论坛徽章:
0
2 [报告]
发表于 2013-06-23 09:59 |只看该作者
求帮助啊~~~

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:57:09
3 [报告]
发表于 2013-06-24 10:41 |只看该作者
本帖最后由 lolizeppelin 于 2013-06-24 10:45 编辑

rh5.0里

postfix需要重新下载源码包scr.rpm,将mysql项修改改成1以支持postfix使用mysql。

另外
postfix的auth-login认证的支持sasl2和dovecot,系统自带sasl2包不支持mysql又要重新编译,所以最好还是安装dovecot并让postfix用dovecot来做认证。
注:安装后可以用postconf –a查看支持的认证类型(其实也就只支持dovecot 和sasl),postconfig –m查看是否支持mysql

论坛徽章:
0
4 [报告]
发表于 2013-06-25 11:41 |只看该作者
回复 3# lolizeppelin 我没用rpm包  所有软件都是用源代码包安装

postconf -a  显示 dovecot和cyrus   postconf -m 显示是支持 MySQL的


   

论坛徽章:
0
5 [报告]
发表于 2013-06-25 13:46 |只看该作者
错误找到了
除了 MySQL rpm包没删  
还有 main.cf
少配一条 virtual_domain_maps
virtual_alias_maps 少了最后一个S


authmysqlrc  中mysql_login_field 参数配置错误   
安装courier-authlib 时 没有加入--with-redhat (这个不知道是不是错误的原因)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP