主题: Bad search filter
外部 ip ,以webmail 登入域內帳號寄給域內另一user
出現下面錯誤訊息, 但信件是可正常寄達, 只是稍感疑惑.
maillog:
Jul 9 14:27:05 mail roundcube: <omro80ij> PHP Error: Detected 'temp_dir' change. Access to '/var/www/roundcubemail-1.3.6/temp' restricted by filesystem permissions or open_basedir in /var/www/roundcubemail-1.3.6/plugins/filesystem_attachments/filesystem_attachments.php on line 219 (POST /mail/?_task=mail&_action=remove-attachment)
Jul 9 14:27:12 mail roundcube: <omro80ij> PHP Error: LDAP: ldap_list failed for dn=domainName=mydomain.com,o=domains,dc=mydomain,dc=com. Bad search filter (POST /mail/?_task=mail&_action=autocomplete)
Jul 9 14:27:12 mail roundcube: <omro80ij> PHP Error: LDAP: ldap_list failed for dn=domainName=mydomain.com,o=domains,dc=mydomain,dc=com. Bad search filter (POST /mail/?_task=mail&_action=autocomplete)
Jul 9 14:27:16 mail roundcube: <omro80ij> PHP Error: Detected 'temp_dir' change. Access to '/var/www/roundcubemail-1.3.6/temp' restricted by filesystem permissions or open_basedir in /var/www/roundcubemail-1.3.6/plugins/filesystem_attachments/filesystem_attachments.php on line 219 (POST /mail/?_task=mail&_unlock=loading1531117639174&_lang=en&_framed=1&_action=send)
Jul 9 14:27:16 mail postfix/submission/smtpd[28483]: connect from mail.mydomain.com[127.0.0.1]
Jul 9 14:27:16 mail postfix/submission/smtpd[28483]: Anonymous TLS connection established from mail.mydomain.com[127.0.0.1]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Jul 9 14:27:16 mail postfix/submission/smtpd[28483]: 2B86598000084: client=mail.mydomain.com[127.0.0.1], sasl_method=LOGIN, sasl_username=aaaa@mydomain.com
Jul 9 14:27:16 mail postfix/cleanup[28487]: 2B86598000084: message-id=<60a0b3add421f0d96a522700a2070b55@mydomain.com>
Jul 9 14:27:16 mail opendmarc[1382]: 2B86598000084: SPF(mailfrom): aaaa@mydomain.com pass
Jul 9 14:27:16 mail opendmarc[1382]: 2B86598000084: mydomain.com pass
Jul 9 14:27:16 mail roundcube: <omro80ij> User aaaa@mydomain.com [203.xx.xx.xx]; Message for bbbb@mydomain.com; 250: 2.0.0 Ok: queued as 2B86598000084
Jul 9 14:27:16 mail postfix/qmgr[2054]: 2B86598000084: from=<aaaa@mydomain.com>, size=8989, nrcpt=2 (queue active)
Jul 9 14:27:16 mail postfix/submission/smtpd[28483]: disconnect from mail.mydomain.com[127.0.0.1]
Jul 9 14:27:16 mail amavis[21122]: (21122-02) ESMTP [127.0.0.1]:10026 /var/spool/amavisd/tmp/amavis-20180709T120453-21122-TbD2HXhi: <aaaa@mydomain.com> -> <mydomainadmin@mydomain.com> Received: from mail.mydomain.com ([127.0.0.1]) by mail.mydomain.com (mail.mydomain.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP for <mydomainadmin@mydomain.com>; Mon, 9 Jul 2018 14:27:16 +0800 (CST)
Jul 9 14:27:16 mail amavis[18322]: (18322-12) ESMTP [127.0.0.1]:10026 /var/spool/amavisd/tmp/amavis-20180709T114651-18322-7dfvXkCC: <aaaa@mydomain.com> -> <bbbb@mydomain.com> Received: from mail.mydomain.com ([127.0.0.1]) by mail.mydomain.com (mail.mydomain.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP for <bbbb@mydomain.com>; Mon, 9 Jul 2018 14:27:16 +0800 (CST)
Jul 9 14:27:16 mail amavis[21122]: (21122-02) Checking: uBa9qCBrCldU ORIGINATING/MYNETS [127.0.0.1] <aaaa@mydomain.com> -> <mydomainadmin@mydomain.com>
Jul 9 14:27:16 mail amavis[18322]: (18322-12) Checking: R9lD7_1-1v70 ORIGINATING/MYNETS [127.0.0.1] <aaaa@mydomain.com> -> <bbbb@mydomain.com>
Jul 9 14:27:17 mail postfix/10025/smtpd[28496]: connect from mail.mydomain.com[127.0.0.1]
Jul 9 14:27:17 mail postfix/10025/smtpd[28496]: 085369800081B: client=mail.mydomain.com[127.0.0.1]
Jul 9 14:27:17 mail postfix/10025/smtpd[28497]: connect from mail.mydomain.com[127.0.0.1]
Jul 9 14:27:17 mail postfix/cleanup[28487]: 085369800081B: message-id=<60a0b3add421f0d96a522700a2070b55@mydomain.com>
Jul 9 14:27:17 mail postfix/10025/smtpd[28497]: 0B9439800082F: client=mail.mydomain.com[127.0.0.1]
Jul 9 14:27:17 mail postfix/cleanup[28500]: 0B9439800082F: message-id=<60a0b3add421f0d96a522700a2070b55@mydomain.com>
Jul 9 14:27:17 mail opendmarc[1382]: 085369800081B: SPF(mailfrom): aaaa@mydomain.com pass
Jul 9 14:27:17 mail opendmarc[1382]: 085369800081B: mydomain.com pass
Jul 9 14:27:17 mail opendmarc[1382]: 0B9439800082F: SPF(mailfrom): aaaa@mydomain.com pass
Jul 9 14:27:17 mail opendmarc[1382]: 0B9439800082F: mydomain.com pass
Jul 9 14:27:17 mail postfix/10025/smtpd[28496]: disconnect from mail.mydomain.com[127.0.0.1]
Jul 9 14:27:17 mail postfix/qmgr[2054]: 085369800081B: from=<aaaa@mydomain.com>, size=10160, nrcpt=1 (queue active)
Jul 9 14:27:17 mail amavis[21122]: (21122-02) uBa9qCBrCldU FWD from <aaaa@mydomain.com> -> <mydomainadmin@mydomain.com>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 085369800081B
Jul 9 14:27:17 mail amavis[21122]: (21122-02) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:58417 <aaaa@mydomain.com> -> <mydomainadmin@mydomain.com>, Queue-ID: 2B86598000084, Message-ID: <60a0b3add421f0d96a522700a2070b55@mydomain.com>, mail_id: uBa9qCBrCldU, Hits: 0.212, size: 9204, queued_as: 085369800081B, dkim_new=dkim:mydomain.com, 855 ms, Tests: [ALL_TRUSTED=-1,SPF_PASS=-0.001,TVD_RCVD_SINGLE=1.213]
Jul 9 14:27:17 mail postfix/10025/smtpd[28497]: disconnect from mail.mydomain.com[127.0.0.1]
Jul 9 14:27:17 mail amavis[21122]: (21122-02) Passed CLEAN, <aaaa@mydomain.com> -> <mydomainadmin@mydomain.com>, Hits: 0.212, tag=2, tag2=6.2, kill=6.9, queued_as: 085369800081B, L/0/0/0
Jul 9 14:27:17 mail amavis[18322]: (18322-12) R9lD7_1-1v70 FWD from <aaaa@mydomain.com> -> <bbbb@mydomain.com>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0B9439800082F
Jul 9 14:27:17 mail postfix/qmgr[2054]: 0B9439800082F: from=<aaaa@mydomain.com>, size=10144, nrcpt=1 (queue active)
Jul 9 14:27:17 mail amavis[18322]: (18322-12) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:58417 <aaaa@mydomain.com> -> <bbbb@mydomain.com>, Queue-ID: 2B86598000084, Message-ID: <60a0b3add421f0d96a522700a2070b55@mydomain.com>, mail_id: R9lD7_1-1v70, Hits: 0.212, size: 9204, queued_as: 0B9439800082F, dkim_new=dkim:mydomain.com, 854 ms, Tests: [ALL_TRUSTED=-1,SPF_PASS=-0.001,TVD_RCVD_SINGLE=1.213]
Jul 9 14:27:17 mail amavis[18322]: (18322-12) Passed CLEAN, <aaaa@mydomain.com> -> <bbbb@mydomain.com>, Hits: 0.212, tag=2, tag2=6.2, kill=6.9, queued_as: 0B9439800082F, L/0/0/0
Jul 9 14:27:17 mail postfix/amavis/smtp[28489]: 2B86598000084: to=<mydomainadmin@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=1, delays=0.13/0.01/0/0.88, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 085369800081B)
Jul 9 14:27:17 mail postfix/amavis/smtp[28491]: 2B86598000084: to=<bbbb@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=1.1, delays=0.13/0.02/0/0.95, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0B9439800082F)
Jul 9 14:27:17 mail postfix/qmgr[2054]: 2B86598000084: removed
Jul 9 14:27:17 mail postfix/pipe[28502]: 0B9439800082F: to=<bbbb@mydomain.com>, relay=dovecot, delay=0.33, delays=0.13/0.01/0/0.18, dsn=2.0.0, status=sent (delivered via dovecot service)
Jul 9 14:27:17 mail postfix/qmgr[2054]: 0B9439800082F: removed
Jul 9 14:27:17 mail postfix/pipe[28501]: 085369800081B: to=<mydomainadmin@mydomain.com>, relay=dovecot, delay=0.34, delays=0.13/0.02/0/0.19, dsn=2.0.0, status=sent (delivered via dovecot service)
Jul 9 14:27:17 mail postfix/qmgr[2054]: 085369800081B: removed
/var/log/nginx/access.log
203.xx.xx.xx - - [09/Jul/2018:14:26:37 +0800] "GET /mail/?_task=mail&_action=compose&_id=14210552895b43001ccace0 HTTP/1.1" 200 11329 "https://mail.mydomain.com/mail/?_task=mail&_mbox=INBOX" "Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0"
203.xx.xx.xx - - [09/Jul/2018:14:27:05 +0800] "POST /mail/?_task=mail&_action=remove-attachment HTTP/1.1" 200 123 "https://mail.mydomain.com/mail/?_task=mail&_action=compose&_id=14210552895b43001ccace0" "Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0"
203.xx.xx.xx - - [09/Jul/2018:14:27:12 +0800] "POST /mail/?_task=mail&_action=autocomplete HTTP/1.1" 200 276 "https://mail.mydomain.com/mail/?_task=mail&_action=compose&_id=14210552895b43001ccace0" "Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0"
203.xx.xx.xx - - [09/Jul/2018:14:27:12 +0800] "POST /mail/?_task=mail&_action=autocomplete HTTP/1.1" 200 276 "https://mail.mydomain.com/mail/?_task=mail&_action=compose&_id=14210552895b43001ccace0" "Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0"
84.246.149.65 - - [09/Jul/2018:14:27:13 +0800] "GET / HTTP/1.0" 301 178 "-" "-"
203.xx.xx.xx - - [09/Jul/2018:14:27:16 +0800] "POST /mail/?_task=mail&_unlock=loading1531117639174&_lang=en&_framed=1 HTTP/1.1" 200 355 "https://mail.mydomain.com/mail/?_task=mail&_action=compose&_id=14210552895b43001ccace0" "Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0"
203.xx.xx.xx - - [09/Jul/2018:14:27:20 +0800] "GET /mail/?_task=mail&_refresh=1&_mbox=INBOX HTTP/1.1" 200 11014 "https://mail.mydomain.com/mail/?_task=mail&_action=compose&_id=14210552895b43001ccace0" "Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0"
1).
PHP Error: Detected 'temp_dir' change. Access to '/var/www/roundcubemail-1.3.6/temp' restricted by filesystem permissions or open_basedir in /var/www/roundcubemail-1.3.6/plugins/filesystem_attachments/filesystem_attachments.php on line 219 (POST /mail/?_task=mail&_action=remove-attachment)
這一個問題,我是解決掉了.
a).mkdir -p /var/run/roundcube/tmp
b).chown -R nginx:nginx /var/run/roundcube/tmp
c)./var/www/roundcubemail/config/config.inc.php
// use this folder to store temp files
// must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
//$config['temp_dir'] = RCUBE_INSTALL_PATH . 'temp/';
$config['temp_dir'] = '/var/run/roundcube/temp/';
2). 但下面問題我無法處理.
PHP Error: LDAP: ldap_list failed for dn=domainName=mydomain.com,o=domains,dc=mydomain,dc=com. Bad search filter (POST /mail/?_task=mail&_action=autocomplete)