404 表示目标文件不存在。还是继续配置 Nginx + phpLDAPadmin 吧。
phpLDAPadmin 的配置是非常简单的,基本只要把文件往 web 文件的目录里一丢就可以用了。
我安装了发现根本就不行 需要使用比较低的版本才可以
支持 Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, FreeBSD, OpenBSD
您尚未登陆。 请选择登陆或是注册一个新账号。
iRedMail 开源邮件服务解决方案 » 由 917428360 发表的文章
页次 1
404 表示目标文件不存在。还是继续配置 Nginx + phpLDAPadmin 吧。
phpLDAPadmin 的配置是非常简单的,基本只要把文件往 web 文件的目录里一丢就可以用了。
我安装了发现根本就不行 需要使用比较低的版本才可以
php日志:
2015/08/15 16:22:17 [error] 19015#0: *351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'page' not found in /var/www/html/phpldapadmin/lib/functions.php on line 583" while reading upstream, client: 192.168.40.82, server: _, request: "GET /phpldapadmin/htdocs/cmd.php?cmd=login_form&server_id=1&meth=ajax HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "192.168.30.143", referrer: "https://192.168.30.143/phpldapadmin/htdocs/index.php"
2015/08/15 16:22:17 [error] 19015#0: *351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'block' not found in /var/www/html/phpldapadmin/lib/functions.php on line 598" while reading upstream, client: 192.168.40.82, server: _, request: "GET /phpldapadmin/htdocs/index.php?URI=Y21kPWxvZ2luX2Zvcm0mc2VydmVyX2lkPTEmbWV0aD1hamF4 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "192.168.30.143", referrer: "https://192.168.30.143/phpldapadmin/htdocs/index.php"
2015/08/15 16:22:17 [error] 19015#0: *351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'page' not found in /var/www/html/phpldapadmin/lib/functions.php on line 583" while reading upstream, client: 192.168.40.82, server: _, request: "GET /phpldapadmin/htdocs/cmd.php?cmd=login_form&server_id=1&meth=ajax HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "192.168.30.143", referrer: "https://192.168.30.143/phpldapadmin/htdocs/index.php"
2015/08/15 16:22:17 [error] 19015#0: *351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'block' not found in /var/www/html/phpldapadmin/lib/functions.php on line 598" while reading upstream, client: 192.168.40.82, server: _, request: "GET /phpldapadmin/htdocs/index.php?URI=Y21kPWxvZ2luX2Zvcm0mc2VydmVyX2lkPTEmbWV0aD1hamF4 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "192.168.30.143", referrer: "https://192.168.30.143/phpldapadmin/htdocs/index.php"
2015/08/15 16:22:17 [error] 19015#0: *351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'page' not found in /var/www/html/phpldapadmin/lib/functions.php on line 583" while reading upstream, client: 192.168.40.82, server: _, request: "GET /phpldapadmin/htdocs/cmd.php?cmd=login_form&server_id=1&meth=ajax HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "192.168.30.143", referrer: "https://192.168.30.143/phpldapadmin/htdocs/index.php"
2015/08/15 16:22:17 [error] 19015#0: *351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'block' not found in /var/www/html/phpldapadmin/lib/functions.php on line 598" while reading upstream, client: 192.168.40.82, server: _, request: "GET /phpldapadmin/htdocs/index.php?URI=Y21kPWxvZ2luX2Zvcm0mc2VydmVyX2lkPTEmbWV0aD1hamF4 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "192.168.30.143", referrer: "https://192.168.30.143/phpldapadmin/htdocs/index.php"
2015/08/15 16:22:17 [error] 19015#0: *351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'page' not found in /var/www/html/phpldapadmin/lib/functions.php on line 583" while reading upstream, client: 192.168.40.82, server: _, request: "GET /phpldapadmin/htdocs/cmd.php?cmd=login_form&server_id=1&meth=ajax HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "192.168.30.143", referrer: "https://192.168.30.143/phpldapadmin/htdocs/index.php"
2015/08/15 16:22:17 [error] 19015#0: *351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'block' not found in /var/www/html/phpldapadmin/lib/functions.php on line 598" while reading upstream, client: 192.168.40.82, server: _, request: "GET /phpldapadmin/htdocs/index.php?URI=Y21kPWxvZ2luX2Zvcm0mc2VydmVyX2lkPTEmbWV0aD1hamF4 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "192.168.30.143", referrer: "https://192.168.30.143/phpldapadmin/htdocs/index.php"
2015/08/15 16:22:17 [error] 19015#0: *351 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'page' not found in /var/www/html/phpldapadmin/lib/functions.php on line 583" while reading upstream, client: 192.168.40.82, server: _, request: "GET /phpldapadmin/htdocs/cmd.php?cmd=login_form&server_id=1&meth=ajax HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "192.168.30.143", referrer: "https://192.168.30.143/phpldapadmin/htdocs/index.php"
已经解决 更换更低版本的安装包 1.2.3时不可以的 会报如下的错误
Fatal error: Class 'block' not found in /var/www/html/phpldapadmin/lib/functions.php on line 598
=== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:iRedMail-0.9.2.tar.bz2
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:centos 6
- 与您的问题相关的日志信息:
====
你好,我添加用户时不小心把postmaster账号给禁用了,请问如何操作可以恢复这个管理员用户呢?
已经loglevel 256
重启的日志如下
Sep 20 21:23:27 mail slapd[1565]: daemon: shutdown requested and initiated.
Sep 20 21:23:27 mail slapd[1565]: conn=1019 fd=25 closed (slapd shutdown)
Sep 20 21:23:27 mail slapd[1565]: slapd shutdown: waiting for 0 operations/tasks to finish
Sep 20 21:23:27 mail slapd[1565]: slapd stopped.
Sep 20 21:23:27 mail slapd[3041]: @(#) $OpenLDAP: slapd 2.4.23 (Feb 3 2014 19:11:35) $#012#011mockbuild@c6b10.bsys.dev.centos.org:/builddir/build/BUILD/openldap-2.4.23/openldap-2.4.23/build-servers/servers/slapd
Sep 20 21:23:27 mail slapd[3042]: bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
Sep 20 21:23:27 mail slapd[3042]: slapd starting
Sep 20 21:25:50 mail slapd[3089]: conn=1003 fd=13 ACCEPT from IP=182.92.66.155:59190 (IP=0.0.0.0:389)
Sep 20 21:25:50 mail slapd[3089]: conn=1003 op=0 BIND dn="" method=128
Sep 20 21:25:50 mail slapd[3089]: conn=1003 op=0 RESULT tag=97 err=0 text=
Sep 20 21:25:50 mail slapd[3089]: conn=1003 op=1 SRCH base="o=domains,dc=cffers,dc=com" scope=2 deref=0 filter="(&(objectClass=posixAccount)(uid=tan.fy))"
Sep 20 21:25:50 mail slapd[3089]: conn=1003 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory loginShell gecos description objectClass
Sep 20 21:25:50 mail slapd[3089]: conn=1003 op=1 SEARCH RESULT tag=101 err=50 nentries=0 text=
Sep 20 21:25:50 mail slapd[3089]: conn=1003 op=2 UNBIND
Sep 20 21:25:50 mail slapd[3089]: conn=1003 fd=13 closed
你应该查询 'id tan.fy' 吧?
用命令查询该账户也是可以查询的
[root@iZ25v9benvkZ ~]# ldapsearch -LLL -W -x -H ldap://cffers.com -D "cn=Manager,dc=cffers,dc=com" -b "dc=cffers,dc=com" "(uid=tan.fy)"
Enter LDAP Password:
dn: mail=tan.fy@cffers.com,ou=Users,domainName=cffers.com,o=domains,dc=cffers,
dc=com
objectClass: inetOrgPerson
objectClass: shadowAccount
objectClass: amavisAccount
objectClass: mailUser
objectClass: top
accountStatus: active
storageBaseDirectory: /var/vmail
你应该查询 'id tan.fy' 吧?
两种都是尝试了一下 发现还是不行 张总,iredmail ldap中应该没有什么验证限制吧?但是能够查询 所以感觉比较奇怪
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.7
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:centos 6
- 与您的问题相关的日志信息:
====
我有一台linux 我想使用iredmail的openldap进行 认证 凡是发现在该linux上进行查询是可以的 配置好ldap后无法正常使用
[root@ ~]# ldapsearch -LLL -W -x -H ldap://cffers.com -D "cn=Manager,dc=cffers,dc=com" -b "dc=cffers,dc=com" "(uid=*)"
Enter LDAP Password:
dn: cn=vmail,dc=cffers,dc=com
objectClass: person
objectClass: shadowAccount
objectClass: top
cn: vmail
^^^^^^^^^^^^^^^^^^^^可以查看信息
[root@ ~]# cat /etc/sysconfig/authconfig | grep yes
CACHECREDENTIALS=yes
USESHADOW=yes
USELDAPAUTH=yes
USELOCAUTHORIZE=yes
USECRACKLIB=yes
USELDAP=yes
[root@iZ25v9benvkZ ~]#
[root@iZ25v9benvkZ ~]# cat /etc/openldap/ldap.conf
#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
#BASE dc=example,dc=com
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666
BASE dc=cffers,dc=com
URI ldap://cffers.com:389
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
#TLS_CACERTDIR /etc/openldap/cacerts
#URI ldap://mail.cffers.com
ssl off
[root@~]# cat /etc/nsswitch.conf
passwd: ldap files
shadow: ldap files
group: ldap files
[root@ ~]# id tan.fy@cffers.com
id: tan.fy:无此用户
[root@ ~]#
[root@ ~]# id tan.fy
id: tan.fy:无此用户
[root@ ~]#
请问我的配置是否正确呢 为什么查询不到该用户呢?
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.7
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Centos 6
- 与您的问题相关的日志信息:
====
其他域:
Your message did not reach one or more recipients.
Recipient:tiger@xtiger.pw
Subject :转发: Delivery Status Notification (Failure)
Bounce Reason:5.1.2 - Bad destination host 'DNS Hard Error looking up 182.92.73.26.xtiger.pw (A): NXDomain'
这是QQ的:
无法发送到<tiger@xtiger.pw>, 原因是:收件人(tiger@xtiger.pw)所属域名不存在,邮件无法送达。.
你好 我一个服务器下现在又两个域 两个域都做了正确的MX 反向解析 SPF 现在我通过另外一个域给xtiger.pw发送邮件时正常的。
但是通过其他的域来发送邮件就会收到以上退信,请问这是什么问题,麻烦大牛们帮忙分析一下。
917428360 写道:TESTING#1: dkim._domainkey.test.com => invalid (public key: not available)
提示无法在 DNS 里查到 DKIM 记录。
你是为域名 'dkim._domainkey.test.com' 添加 DKIM 记录么?
感谢提醒 现已经修改。已经ok了 谢谢……
[root@mail dkim]# amavisd -c /etc/amavisd/amavisd.conf testkeys
TESTING#1: dkim._domainkey.test.com => pass
[root@mail dkim]#
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.6
- 使用哪个数据库存储用户帐号:OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 6
- 与您的问题相关的日志信息:
====
[root@mail ~]# amavisd -c /etc/amavisd/amavisd.conf showkeys
; key#1, domain test.com, /var/lib/dkim/test.com.pem
dkim._domainkey.test.com. 3600 TXT (
"v=DKIM1; p="
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC1+J2NKPtM1jwOm55mHIaAWOPd"
"hf6JNWu5AIMuOWBP8Q2aGPR1aUFEJqCgsii962dTaKlr2Yku01F8t7mRkagL4KSZ"
"1ahZntYXgkXtRwMEGCKsc9s/4v0ZKJFnKmuubIFMLPUvUwTpAiS4sVXtXCmPX4Jn"
"nPOWp938lYxQtSUIzQIDAQAB")
我已经在dns服务器上添加记录 值也已经生效 但是现在测试不通过 不知道什么原因,麻烦大牛们帮忙看看。。
[root@mail ~]# amavisd -c /etc/amavisd/amavisd.conf testkeys
TESTING#1: dkim._domainkey.test.com => invalid (public key: not available)
发送的时候maillog中有这样关键字
queued_as: 4E1E3E86F8, dkim_new=dkim:test.com, 3834 ms
接收的邮件中有这样的信息:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=test.com; h=
content-type:content-type:in-reply-to:references:subject:subject
:to:mime-version:user-agent:from:from:date:date:message-id; s=
dkim; t=1400389215; x=1401253216; bh=+LdM9ak/YFifvi4Z5KqEi/tC+Zw
PNRBnvBFpne9YmeE=; b=AafRJOKhzDj3ShpnWM81z7L25fVOVWS2segsd11LF3p
twloQzaYhXULHBa3SeeulOTMohl+IXYDxIoH4wmSaxvEv13PbXwijwe0m6bhX8iu
JyNYc/q8Xu8lLElA9ISlil4GrR69P64vrIncCyU7MLPM+ahQRMWlZUGx1PbiR/zY
=
我不知道到底成功了没有呢?
页次 1
iRedMail 开源邮件服务解决方案 » 由 917428360 发表的文章
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2010 PunBB.
页面生成时间 0.007 秒, 共执行查询 72 条