将 /opt/iredapd/etc/iredapd-rr.ini 里的 "log_level = info" 设置为 debug,重启 iRedAPD 服务后再测试一次。将相关的日志贴上来看看。
太奇怪了,昨天公司停电,我的虚拟机(vmware player)关掉了,今天打开虚拟机,既然可以了。我之前也有重启过服务,重启过虚拟机,就是不生效。
唯一不同的地方,就是没有断电,然后在开机,不知道和这个有没有关系。
我一直怀疑是master.cf文件出错了,需要在里面添加7778端口对应的服务参数,类似于127.0.0.1:10025 inet n - - - - smtpd
-o content_filter
这样的语句,看来同master.cf这个文件没有关系
iredapd-rr.ini里log_level改为debug后的log。
2012-12-20 21:39:44 DEBUG Connect from 127.0.0.1, port 39107.
2012-12-20 21:39:44 DEBUG smtp session: request=smtpd_access_policy
2012-12-20 21:39:44 DEBUG smtp session: protocol_state=RCPT
2012-12-20 21:39:44 DEBUG smtp session: protocol_name=ESMTP
2012-12-20 21:39:44 DEBUG smtp session: client_address=192.168.1.105
2012-12-20 21:39:44 DEBUG smtp session: client_name=unknown
2012-12-20 21:39:44 DEBUG smtp session: reverse_client_name=unknown
2012-12-20 21:39:44 DEBUG smtp session: helo_name=FMISA4105SCA
2012-12-20 21:39:44 DEBUG smtp session: sender=test1@silence.com
2012-12-20 21:39:44 DEBUG smtp session: recipient=282490326@qq.com
2012-12-20 21:39:44 DEBUG smtp session: recipient_count=0
2012-12-20 21:39:44 DEBUG smtp session: queue_id=
2012-12-20 21:39:44 DEBUG smtp session: instance=be7.50d3151f.e95e9.1
2012-12-20 21:39:44 DEBUG smtp session: size=0
2012-12-20 21:39:44 DEBUG smtp session: etrn_domain=
2012-12-20 21:39:44 DEBUG smtp session: stress=
2012-12-20 21:39:44 DEBUG smtp session: sasl_method=LOGIN
2012-12-20 21:39:44 DEBUG smtp session: sasl_username=test1@silence.com
2012-12-20 21:39:44 DEBUG smtp session: sasl_sender=
2012-12-20 21:39:44 DEBUG smtp session: ccert_subject=
2012-12-20 21:39:44 DEBUG smtp session: ccert_issuer=
2012-12-20 21:39:44 DEBUG smtp session: ccert_fingerprint=
2012-12-20 21:39:44 DEBUG smtp session: encryption_protocol=
2012-12-20 21:39:44 DEBUG smtp session: encryption_cipher=
2012-12-20 21:39:44 DEBUG smtp session: encryption_keysize=0
2012-12-20 21:39:44 DEBUG LDAP connection initialied success.
2012-12-20 21:39:44 DEBUG LDAP bind success.
2012-12-20 21:39:44 DEBUG __get_sender_dn_ldif (sender): test1@silence.com
2012-12-20 21:39:44 DEBUG __get_sender_dn_ldif: Quering LDAP
2012-12-20 21:39:44 DEBUG __get_sender_dn_ldif (result): [('mail=test1@silence.com,ou=Users,domainName=silence.com,o=domains,dc=silence,dc=com', {'memberOfGroup': ['grptest@silence.com'], 'uid': ['test1'], 'mailQuota': ['1073741824'], 'objectClass': ['inetOrgPerson', 'mailUser', 'shadowAccount', 'amavisAccount'], 'userPassword': ['{SSHA}4ANPwCEs1+FGrL/5ku1iGKfEzk+nPQb3C5ZzAw=='], 'homeDirectory': ['/var/vmail/vmail1/silence.com/t/te/tes/test1-2012.11.29.23.34.48/'], 'accountStatus': ['active'], 'mailBlacklistRecipient': ['@.'], 'mtaTransport': ['dovecot'], 'sn': ['test1'], 'storageBaseDirectory': ['/var/vmail'], 'mail': ['test1@silence.com'], 'mailMessageStore': ['vmail1/silence.com/t/te/tes/test1-2012.11.29.23.34.48/'], 'enabledService': ['mail', 'smtp', 'deliver', 'pop3', 'pop3secured', 'imap', 'imapsecured', 'managesieve', 'managesievesecured', 'sieve', 'sievesecured', 'internal', 'forward', 'senderbcc', 'recipientbcc', 'shadowaddress', 'displayedInGlobalAddressBook'], 'cn': ['test1']})]
2012-12-20 21:39:44 DEBUG Apply plugin (ldap_recipient_restrictions).
2012-12-20 21:39:44 DEBUG Response from plugin (ldap_recipient_restrictions): REJECT Permission denied
2012-12-20 21:39:44 INFO Response from plugin (ldap_recipient_restrictions): REJECT Permission denied
2012-12-20 21:39:44 DEBUG Final action: REJECT Permission denied.
2012-12-20 21:39:44 INFO [192.168.1.105] test1@silence.com -> 282490326@qq.com, REJECT Permission denied
2012-12-20 21:39:44 DEBUG Connection closed