发新话题
打印

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

This is the step to take if you want to test if the pop server is runing well.
It is 100% accurate.

In your server
[SHELL] > telnet localhost 110

Then from now onwards you will be working on telnet prompt.



[TELNET]  > user mis@liuQang.cn


[TELNET]  > pass ****

Third step, list all the message available
[TELNET]  > list

Fourth Displays a specific message in the telnet terminal window, for example, retrieve email id 102
[TELNET]  >retr 102

Deletes a specific message, if want to delete email id 102
[TELNET]  >dele 102

Finally, closes telnet session
[TELNET]  >Quit

This is very useful when you want to identify if this is the pop server problem or the email client application issue.
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

谢谢,谢谢楼主
这是我telnet的记录:
+OK Hello there.
user wangpeng@liuQang.cn
+OK Password required.
pass 299480
-ERR Login failed.

同时生成的主机上生成的log:
[root@mail authlib]# tail /var/log/maillog
Apr  1 13:52:19 mail pop3d: LOGIN: ip=[::ffff:201.93.163.18], password=wangpeng
Apr  1 13:52:19 mail authdaemond: received auth request, service=pop3, authtype=login
Apr  1 13:52:19 mail authdaemond: authldap: trying this module
Apr  1 13:52:19 mail authdaemond: selected ldap protocol version 3
Apr  1 13:52:19 mail authdaemond: binding to LDAP server as DN 'mail=root@jme.cn,o=extmailManager,dc=liuQang,dc=cn', password 'extmail'
Apr  1 13:52:19 mail authdaemond: using search filter: (&(active=1)(mail=wangpeng))
Apr  1 13:52:19 mail authdaemond: number of entries returned: 0 (but we need exactly 1)
Apr  1 13:52:19 mail authdaemond: authldap: REJECT - try next module
Apr  1 13:52:19 mail authdaemond: FAIL, all modules rejected
Apr  1 13:52:19 mail pop3d: LOGIN FAILED, user=wangpeng, ip=[::ffff:201.93.163.18]

TOP

楼主下面是我分别在extmail和outlook上登陆时的信息,请你帮我分析.
extmail上登陆信息如下:
slapd starting
conn=0 fd=10 ACCEPT from IP=127.0.0.1:1080 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn="cn=Manager,dc=liuQang,dc=cn" method=128
conn=0 op=0 BIND dn="cn=Manager,dc=liuQang,dc=cn" mech=SIMPLE ssf=0
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 SRCH base="dc=liuQang,dc=cn" scope=2 deref=2 filter="(mail=mis@liuQang.cn)"
conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=0 fd=10 closed
Outlook上登陆信息如下:
conn=1 fd=10 ACCEPT from IP=127.0.0.1:1081 (IP=0.0.0.0:389)
conn=1 op=0 BIND dn="mail=root@liuQang.cn,o=extmailManager,dc=liuQang,dc=cn" method=128
conn=1 op=0 BIND dn="mail=root@liuQang.cn,o=extmailManager,dc=liuQang,dc=cn" mech=SIMPLE ssf=0
conn=1 op=0 RESULT tag=97 err=0 text=
conn=1 op=1 SRCH base="o=extmailAccount,dc=liuQang,dc=cn" scope=2 deref=0 filter="(&(active=1)(mail=mis))"
conn=1 op=1 SRCH attr=homeDirectory cn clearPassword userPassword mail mailquota
<= bdb_equality_candidates: (active) index_param failed (18)
conn=1 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1 op=2 UNBIND
conn=1 fd=10 closed

个人认为:从log上看filter="(&(active=1)(mail=mis))"部份是有问题,但无从下手。
请楼主出手相助,千万份感谢!!!

TOP

引用:
下面是引用qjlpn于2006-04-01 16:55发表的:
楼主下面是我分别在extmail和outlook上登陆时的信息,请你帮我分析.
extmail上登陆信息如下:
slapd starting
conn=0 fd=10 ACCEPT from IP=127.0.0.1:1080 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn="cn=Manager,dc=liuQang,dc=cn" method=128
.......
建议楼上的做一个这样的测试:

命令行下用ldapsearch来搜索一下能否搜索到用户:
引用:
ldapsearch -x -b &#39;o=extmailAccount,dc=liuQang.dc=cn&#39; -D "mail=root@liuQang.cn,o=extmailManager,dc=liuQang,dc=cn" -w extmail "(&(active=1)(mail=wangpeng@liuqang.cn))"
这里 的
引用:
"(&(active=1)(mail=wangpeng@liuqang.cn))"
就是authldaprc里的filter, 看看这样子能否搜索出要的ldap的记录?如果可以。同时看看日志里的debug信息是什么?
欢迎使用下列开源软件: 高性能邮件系统- ExtMail Spam Locker反垃圾邮件系统

TOP

qjlpn, can you try with the 52 楼 suggestion, from what i compare , there is some added/missing attribute from your authldaprc.

Missing attribute in your configuration

LDAP_AUTHBIND     1


extra configuration in your setting:

LDAP_PROTOCOL_VERSION  3
LDAP_CLEARPW      clearPassword

Beside that, in your configuration,

LDAP_MAILDIRQUOTA    mailquota

but in my production version, it is

LDAP_MAILDIRQUOTA    mailQuota
Maybe  you change the configuration of your authldaprc, restart the it with

service courier-authlib restart

Try again and check if you can success
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

欢迎总版主,大驾光临。。。
回总版主:我可以在outlook上面登陆了。
因为我在outlook账号设置里设置的是wangpeng@liuqang.cn,就是连同域名一块写进去了,我想请问版主怎样才可以只设置账号名不加后掇(如:wangpeng)这种格式。
谢谢!!!

TOP

ethan兄弟,因为我的疏忽而给你带来的麻烦我深感歉意。还有个问题就是如61楼,还得请你出手相助。之前都是因为我没加@liuqang.cn而导至。怎样才可以不加后掇而同样用outlook通过pop3访问我的邮件主机?
谢谢!!!

TOP

引用:
下面是引用qjlpn于2006-04-02 13:09发表的:
ethan兄弟,因为我的疏忽而给你带来的麻烦我深感歉意。还有个问题就是如61楼,还得请你出手相助。之前都是因为我没加@liuqang.cn而导至。怎样才可以不加后掇而同样用outlook通过pop3访问我的邮件主机?
谢谢!!!
authldaprc 里好象可以设置一个DEFAULT_DOMAIN,楼上看看authldaprc里的注释

设置了这个默认域名,应该就可以只输入用户名而不需要连域名了。
欢迎使用下列开源软件: 高性能邮件系统- ExtMail Spam Locker反垃圾邮件系统

TOP

引用:
下面是引用qjlpn于2006-04-02 13:00发表的:
欢迎总版主,大驾光临。。。
回总版主:我可以在outlook上面登陆了。
因为我在outlook账号设置里设置的是wangpeng@liuqang.cn,就是连同域名一块写进去了,我想请问版主怎样才可以只设置账号名不加后掇(如:wangpeng)这种格式。
谢谢!!!
已回复,ps:不必客气:)有空多来这里讨论问题。
欢迎使用下列开源软件: 高性能邮件系统- ExtMail Spam Locker反垃圾邮件系统

TOP

ok. i find the solution for you, qjlpn

just add below setting at /etc/authlib/authldaprc

LDAP_DOMAIN  liuqang.cn

and do
service courier-authlib restart

I test it myself and it works very well.
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

引用:
下面是引用ethan于2006-04-03 21:22发表的:
ok. i find the solution for you, qjlpn

just add below setting at /etc/authlib/authldaprc

LDAP_DOMAIN   liuqang.cn
.......
yes right, the LDAP_DOMAIN do the job, well done :-)
欢迎使用下列开源软件: 高性能邮件系统- ExtMail Spam Locker反垃圾邮件系统

TOP

报告版主,我依照你给的方法试了,还是不行呀.是不是還有要改的地方?
還些個比較菜的問題想請教:(1)maildrop模塊主要是drop那此郵件?怎麽配置?mailfilter這個文件怎麽寫?
(2)如果配置幷啓用了helo_access,sender_access,client_access等配置文件會不會對郵件用戶所使用的機器或是所用的ip地址起到約束?我該怎樣才能很好的解决移動郵件用的使用問題?
謝謝!!!
還請各路大俠出手相助

TOP

ethan兄弟,向你反映個關于你的貼子的問題:下面行命令[SHELL] > cp -ir /root/.spamassassin /var/amavis  老是提示找不到.spamassassin文件
同時也謝謝你的回貼

TOP

can you please check if you have spamassasin installed?

service spamassassin status

Beside that, please start the spamassasin first.

service spamassasin start
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

发新话题