发新话题
打印

centos4+extmail+extman+FCGI+postfix+ldap+courier-imap+maildrop+SA+amavis+SASL+TLS+clamav

我们用的是CentOS 4.3

TOP

问题已解决,原因是ldap密码不匹配

TOP

thanks for verify it , and sorry because  i did not answer the question in the forum this few days . . I am too busy with the things in hand, hopefully more of you report bugs.


without 楼主,介意将你解决问题方法吗? 这可让其它人有个借镜
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

谢谢ethan的文档。
我们按文档装到需要登录extman的时候,extman总是Invalid email account or password,
对照文档检查,发现两个问题:
1. 在按文档配置系统的时候,部分地方有拼写错误
2. 原来在 /etc/openldap/init.ldif中录入userPassword的地方录入的是明文,后来改成crypt之后,没有运行命令ldapmodify
改正以上两类错误以后,即可以登录extman进行配置

但现在遇到新问题,装完POP/IMAP SERVER (COURIER-imap)以后,用extmail可以正常收发邮件,但用pop3则失败,邮件服务器上的端口打不开。Ethan是否可以指点一二?

TOP

disable firewall first and the SElinux  to check if this is firewall problem. if needed, use

netstat -n | grep ":110"


to check if the courier is listen to 110. Beside that, make sure courier-authlib is running

Hope this help

and please tell me where is the
引用:
1. 在按文档配置系统的时候,部分地方有拼写错误
Thanks
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

各位大虾,我的服务器是linux debian 3.1,是不是不兼容?
我是菜鸟,望各位大虾多多指教!

TOP

hmm.this guide is dedicate for centos/redhat platform only. It will work in debian if you know how to get the package required and the location of configuration file.
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

谢楼主为我们带来这么好的文章.
我按樓主的貼子在公司的pc機上裝了,可當我裝好sasl後,我的客戶端不能用outlook收到extmail裏面的郵件,可以發.以下是獲得的maillog信息:
Mar 31 17:53:39 mail authdaemond: using search filter: (mail=mis)
Mar 31 17:53:39 mail authdaemond: number of entries returned: 0 (but we need exactly 1)
Mar 31 17:53:39 mail authdaemond: authldap: REJECT - try next module
Mar 31 17:53:39 mail authdaemond: FAIL, all modules rejected
Mar 31 17:53:39 mail pop3d: LOGIN FAILED, user=mis, ip=[::ffff:201.93.134.56]

我的域名爲liuQang.cn,主機名爲mail.liuQang.cn,ip爲201.93.134.57
從日志看是我的authldaprc文件中的LDAP_FILTER出現了設置出了點問題
直接登陸extmail.liuQang.cn能够正常收發郵件.
請ethan指點.依照你的貼子裏我就是改了個域名和ip,其它都沒改過,我那個Ldap_filte該怎樣寫?
謝謝!!!

TOP

please check /etc/authlib/authldaprc file. The syntax for this file is

LDAP_URI<tab>ldap://localhost

so, make sure there is no space or others things after the ldap://localhost. If not it will report problem because it is very sensitive
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

感谢ethan的回复,authldaprc 中我都是用的TAB键以分开变量与值的,还有每个值后面我都检查过没有空格字符

TOP

this is the data in my production server.

LDAP_URI           ldap://localhost
LDAP_PORT          389
LDAP_BASEDN         o=extmailAccount,dc=ethansoft,dc=com
LDAP_BINDDN         mail=root@ethansoft.com,o=extmailManager,dc=ethansoft,dc=com
LDAP_BINDPW         xxxxx
LDAP_TIMEOUT        5
LDAP_AUTHBIND        1
LDAP_MAIL          mail
LDAP_FILTER         (active=1)
LDAP_GLOB_UID        vmail
LDAP_GLOB_GID        vmail
LDAP_HOMEDIR        homeDirectory
LDAP_MAILROOT        /home/vmail/domains
LDAP_MAILDIRQUOTA     mailQuota
LDAP_FULLNAME        cn
LDAP_CRYPTPW        userPassword
LDAP_DEREF          never
LDAP_TLS           0


Please verify this three field and put in watever in your environment


LDAP_BASEDN         o=extmailAccount,dc=ethansoft,dc=com
LDAP_BINDDN         mail=root@ethansoft.com,o=extmailManager,dc=ethansoft,dc=com
LDAP_BINDPW         xxxxx
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

also login to extman, look at the particular user detail , and tick the pop3, imap, netdisk in the permited services field. I suspect you did not tick the pop3
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

你这种乐于助人的精神实在太令我感动,我想着有一天自已的技术与楼主一样我也要热心的帮助别人。向你致敬!!!
以下是我的配置,请你帮我看看:
]# tail /var/log/maillog
tail /var/log/maillog
Apr  1 10:21:01 mail pop3d: LOGIN: ip=[::ffff:202.96.163.108], username=mis
Apr  1 10:21:01 mail pop3d: LOGIN: ip=[::ffff:202.96.163.108], password=299480
Apr  1 10:21:01 mail authdaemond: received auth request, service=pop3, authtype=login
Apr  1 10:21:01 mail authdaemond: authldap: trying this module
Apr  1 10:21:01 mail authdaemond: using search filter: (&(active=1)(mail=mis))
Apr  1 10:21:01 mail authdaemond: number of entries returned: 0 (but we need exactly 1)
Apr  1 10:21:01 mail authdaemond: authldap: REJECT - try next module
Apr  1 10:21:01 mail authdaemond: FAIL, all modules rejected
Apr  1 10:21:01 mail pop3d: LOGIN FAILED, user=mis, ip=[::ffff:201.93.163.18]
Apr  1 10:21:06 mail pop3d: Disconnected, ip=[::ffff:201.93.163.18]


LDAP_URI                ldap://localhost
LDAP_PORT               389
LDAP_PROTOCOL_VERSION   3
LDAP_BASEDN             o=extmailAccount,dc=liuQang,dc=cn
LDAP_BINDDN             mail=root@liuQang.cn,o=extmailManager,dc=liuQang,dc=cn
LDAP_BINDPW             extmail
LDAP_TIMEOUT            5
LDAP_MAIL               mail
LDAP_FILTER             (active=1)
LDAP_GLOB_UID          vmail
LDAP_GLOB_GID          vmail
LDAP_HOMEDIR            homeDirectory
LDAP_MAILROOT          /home/vmail/domains
LDAP_MAILDIRQUOTA       mailquota
LDAP_FULLNAME          cn
LDAP_CLEARPW            clearPassword
LDAP_CRYPTPW            userPassword
LDAP_DEREF             never
LDAP_TLS                0


dn: dc=liuQang,dc=cn
objectClass: organization
objectClass: dcObject
dc: liuQang
o: liuQang

dn: cn=Manager,dc=liuQang,dc=cn
objectClass: top
objectClass: organizationalRole
cn: Manager

dn: o=extmailAccount,dc=liuQang,dc=cn
objectClass: organization
o: extmailAccount

dn: o=extmailAlias,dc=liuQang,dc=cn
objectClass: organization
o: extmailAlias

dn: o=extmailManager,dc=liuQang,dc=cn
objectClass: organization
o: extmailManager

dn: mail=root@liuQang.cn,o=extmailManager,dc=liuQang,dc=cn
cn: Root
uid: root
mail: root@liuQang.cn
userPassword:: e2NyeXB0fWR1YTdsVEFkR2p5Zm8=
managerType: admin
active: 1
createDate: 2005-10-18 18:32:14
expireDate: 2007-08-01 00:00:00
objectClass: top
objectClass: extmailManager

dn: virtualDomain=liuQang.cn,o=extmailAccount,dc=liuQang,dc=cn
virtualDomain: liuQang.cn
createDate: 2006-03-27 14:04:54
expireDate: 2007-03-27 14:04:41
description: Main Email Server
domainMaxAlias: 10
domainMaxUsers: 10
domainMaxQuota: 10485760S
domainMaxNetStore: 10485760S
Transport: 1
active: 1
objectClass: top
objectClass: extmailDomain

dn: mail=mis@liuQang.cn,virtualDomain=liuQang.cn,o=extmailAccount,dc=liuQang,dc=cn
mail: mis@liuQang.cn
cn: mis
virtualDomain: liuQang.cn
uidNumber: 500
gidNumber: 500
uid: mis
objectClass: top
objectClass: uidObject
objectClass: extmailUser
netdiskQuota: 10485760S
active: 1
mailQuota: 10485760S
userPassword:: e0NSWVBUfTZON0Zrb0ZBZzRNdU0=
mailMessageStore: liuQang.cn/mis/Maildir/
homeDirectory: liuQang.cn/mis
expireDate: 2007-03-27 14:05:48
createDate: 2006-03-27 14:06:12
authorizedServices: webmail
authorizedServices: smtpauth
authorizedServices: pop3

dn: virtualDomain=mailsz.liuQang.cn,o=extmailAccount,dc=liuQang,dc=cn
virtualDomain: mailsz.liuQang.cn
createDate: 2006-03-27 14:29:20
expireDate: 2007-03-27 14:28:45
description: cn_shengzhen
domainMaxAlias: 10
domainMaxUsers: 10
domainMaxQuota: 1048576000S
domainMaxNetStore: 1048576000S
Transport: 1
active: 1
objectClass: top
objectClass: extmailDomain

dn: mail=wangpeng,o=extmailManager,dc=liuQang,dc=cn
mail: wangpeng
cn: wangpeng
objectClass: top
objectClass: extmailManager
active: 1
createDate: 2006-03-27 14:29:49
expireDate: 2007-03-27 14:29:27
managerType: postmaster
userPassword:: e0NSWVBUfVdXV1RRT2Jyd3dsaDY=
virtualDomain: mailsz.liuQang.cn

dn: mail=wang@mailsz.liuQang.cn,virtualDomain=mailsz.liuQang.cn,o=extmailAccount,dc=jm
e,dc=cn
mail: wang@mailsz.liuQang.cn
cn: wang
virtualDomain: mailsz.liuQang.cn
uidNumber: 501
gidNumber: 501
uid: wang
objectClass: top
objectClass: uidObject
objectClass: extmailUser
netdiskQuota: 10485760S
active: 1
mailQuota: 10485760S
userPassword:: e0NSWVBUfWxQVXBzRU1LWTZuUVk=
mailMessageStore: mailsz.liuQang.cn/wang/Maildir/
homeDirectory: mailsz.liuQang.cn/wang
expireDate: 2007-03-27 14:29:53
createDate: 2006-03-27 14:30:28
authorizedServices: webmail
authorizedServices: smtpauth
authorizedServices: pop3

TOP

ok. I might know your problem. Please use mis@liuQang.cn as your username.

And thanks for appraise me. Let me know if you got it working.
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

发新话题