发新话题
打印

UPDATED 已修复(01/10/2006) : extmail 安装包 ( CENTOS 4.3 with LDAP)

thanks zzhanghj_ok

TOP

改了管理员密码,重起来courier-authlib服务,用OE与WEB能正常收发邮件

但是重起后就WEB出现以下问题:
LDAP operation fail, Connection refused

/var/log/maillog:
authentication error: Input/output error
authdaemond: ldap_simple_bind_s failed: Can't contact LDAP server

我的服务都已经起来了,怎么还会这样呢

[root@mail init.d]# service --status-all
acpid (pid 1930) is running...
anacron is stopped
atd is stopped
auditd is stopped
Configured Mount Points:
------------------------

Active Mount Points:
--------------------
hcid is stopped
sdpd is stopped
hidd is stopped
cpuspeed is stopped
crond (pid 2072) is running...
cupsd is stopped
Device not specified in /etc/sysconfig/diskdump
gpm is stopped
hald is stopped
httpd (pid 2101 2100 2097 2096 2095 2091 2090 2089 2063) is running...
ipmi_msghandler module not loaded.
ipmi_si module not loaded.
ipmi_devintf module not loaded.
/dev/ipmi0 does not exist.
Firewall is stopped.
irattach is stopped
irqbalance dead but subsys locked
slapd is stopped
Usage: /etc/init.d/mailgraph-init { start | restart | stop }
mdmpd is stopped
dbus-daemon-1 (pid 2102) is running...
/etc/init.d/microcode_ctl: reading microcode status is not yet supported
Server address not specified in /etc/sysconfig/netdump
netplugd is stopped
Configured devices:
lo eth0
Currently active devices:
lo eth0
NetworkManager is stopped
Shutting down NFS mountd: rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped
rpc.statd is stopped
nscd is stopped
ntpd (pid 1954) is running...
portmap is stopped
master (pid 2039) is running...
Process accounting is disabled.
Usage: /etc/init.d/qmonitor-init { start | restart | stop }
rpc.idmapd is stopped
saslauthd (pid 3197 3196 3195 3193 3192) is running...
smartd is stopped
sshd (pid 2788 1939) is running...
syslogd (pid 1845) is running...
klogd (pid 1849) is running...
xinetd is stopped
ypbind is stopped
Nightly yum update is disabled.

TOP

Use this to check
引用:
service ldap status
if the service is started, then do this to check if the ldap is listen to port 389
引用:
telnet localhost 389
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

[root@mail ~]# service ldap start
Checking configuration files for : config file testing succeeded
Starting slapd:                              [  OK  ]
[root@mail ~]# service ldap status
slapd is stopped
[root@mail ~]# ps aux | grep sldapd
root    31710  0.0  0.1  4416  504 pts/0   R+  10:31  0:00 grep sldapd

[root@mail ~]# cat /var/log/maillog
...
Aug 17 10:23:51 mail postfix/pickup[31386]: CF60E2FE4C: uid=0 from=<root>
Aug 17 10:23:51 mail postfix/cleanup[31388]: warning: dict_ldap_lookup: Search error -1: Can&#39;t contact LDAP server
Aug 17 10:23:51 mail postfix/cleanup[31388]: warning: CF60E2FE4C: virtual_alias_maps map lookup problem for root@mmcera.com
Aug 17 10:23:51 mail postfix/pickup[31386]: warning: maildrop/A018A2FE5B: Error writing message file

TOP

引用:
当你在extman里修改了root@directory.server 密码之后,必须也同时修改/etc/authlib/authldaprc 的 LDAP_BINDPW 及 /etc/sysconfig/saslauthd 的 ldap_bind_pw:.
我不在/etc/authlib/authldaprc 及 /etc/saslauthd.conf 用cn=Manager,dc=directory,dc=server 而选择用mail=root@directory.server,o=extmailManager,dc=directory,dc=server
是因为cn=Manager,dc=directory,dc=server 是ldap server 的超级admin, 而mail=root@directory.server,o=extmailManager,dc=directory,dc=server 只是extmail 与extman 的admin,主要在与/etc/authlib/authldaprc 及/etc/saslauthd.conf 都用文明写上密码,假如某人hack 进server, 而我们又用 cn=Manager,dc=directory,dc=server 的话, 那整个ldap 就完了, 但如用mail=root@directory.server,o=extmailManager,dc=directory,dc=server , 那最坏也只是丢了 extmail 的那一部分,其它在openldap的资料都回平安无事, 希望大家明白
it is at the first port...
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

老大什么时候把extmail 安装包下载地址重发一下?

TOP

请到 www.ethansoft.com 下载吧
文章 - Ethan
Redhat Certifed Technician , Paypal Certified Developer

TOP

在执行installer.sh过程中出现以下代码是怎么回事呀
Performing Server Update (Please wait} : rpm: not found
FAIL
Installing needed application (Please wait} :
yum: not found
rpm: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
chkconfig: not found
service: not found
alternatives: not found
yum: not found
groupadd: not found
chown: vmail: Invalid argument
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
mkdir: /var/www/cgi-bin/extmail: No such file or directory
mkdir: /var/www/cgi-bin/extman: No such file or directory
chown: vmail.vmail: Invalid argument
mv: rename /var/www/cgi-bin/extmail/webmail.cf.default to /var/www/cgi-bin/extmail/webmail.cf: No such file or directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
installer.sh: cannot create /var/www/cgi-bin/extman/webman.cf.new: No such file or directory
cat: /var/www/cgi-bin/extman/webman.cf.bak: No such file or directory
installer.sh: cannot create /var/www/cgi-bin/extmail/webmail.cf.new: No such file or directory
cat: /var/www/cgi-bin/extmail/webmail.cf.bak: No such file or directory
slappasswd: not found
installer.sh: cannot create /etc/openldap/slapd.conf.new: No such file or directory
installer.sh: cannot create /etc/sysconfig/saslauthd.new: No such file or directory
cat: /etc/sysconfig/saslauthd: No such file or directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
mv: rename postfix/main.cf.new to /etc/postfix/main.cf: No such file or directory
mv: rename /etc/sysconfig/saslauthd.new to /etc/sysconfig/saslauthd: No such file or directory
mv: rename apache/extmail.conf.new to /etc/httpd/conf.d/extmail.conf: No such file or directory
mv: rename /etc/openldap/slapd.conf.new to /etc/openldap/slapd.conf: No such file or directory
mv: rename /var/www/cgi-bin/extman/webman.cf.new to /var/www/cgi-bin/extman/webman.cf: No such file or directory
mv: rename /var/www/cgi-bin/extmail/webmail.cf.new to /var/www/cgi-bin/extmail/webmail.cf: No such file or directory
chmod: /var/www/cgi-bin/extmail/webmail.cf: No such file or directory
chmod: /var/www/cgi-bin/extman/webman.cf: No such file or directory
chmod: /var/www/cgi-bin/extmail/cgi/*: No such file or directory
chmod: /var/www/cgi-bin/extman/cgi/*: No such file or directory
chmod: /var/www/cgi-bin/extman/tools/*: No such file or directory
chmod: /etc/authlib/authdaemonrc: No such file or directory
chmod: /etc/authlib/authldaprc: No such file or directory
chmod: /usr/bin/maildrop: No such file or directory
chown: daemon.daemon: Invalid argument
chown: daemon.daemon: Invalid argument
chown: vmail.vmail: Invalid argument
chown: vmail.vmail: Invalid argument
installer.sh: cannot create /etc/postfix/helo_access: No such file or directory

TOP

下载instaler包后,仅修改了
# Make Changes here.
LDAPPW="secret";                      # This is Ldap Manager password
EXTMAIL_SERVER_NAME="mail.ccdh.com.cn";    # This is the URL to access extmail
EXTMAN_SERVER_NAME="extman.ccdh.com.cn";      # This is the URL to access extman
DOMAINNAME="ccdh.com.cn";                # This is the domain used in postfix main.cf
HOSTNAME="mail.ccdh.com.cn";              # This is the hostname used in postfix main.cf
中相关信息 后安装成功

建立domain、user后在web方式收发邮件正常,但在outlook中无法收发邮件,需要验证。用telnet测试用户显示以下信息:

[root@mail ldap]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is &#39;^]&#39;.
+OK Hello there.
user abc
+OK Password required.
pass 123
-ERR Login failed.

是否是和ldap相关呢?请指教!谢谢

TOP

发现问题了 应该用abc@domain.
+OK Hello there.
user abc@domain
+OK Password required.
pass 123
+OK

按照另外一个帖子中提到的修改/etc/authlib/authldaprc,增加:
LDAP_DOMAIN   domain

service courier-authlib restart

就可以用abc来收发邮件了。

TOP

老大,您好,我按照您的安装可以发邮件,但是就是收不到邮件,发到163的邮箱都能收到,别的邮箱发过来的收不到,登录是成功的。请问一下是什么问题?

TOP

where can i downland?

TOP

我也找不到download的URL
none

TOP

none

TOP

发新话题