我在nginx配置了webmail,也不行;请帮忙看下是否配置的不对,谢谢。
请帮忙看下附件中的配置,谢谢。

==== ==== ======== ==== ====
- iRedMail 版本号:0.9.7
- 使用数据库存储用户帐号(MySQL):MYSQL
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 7.3
- 相关日志如下:
==== ==== ====
我修改“/var/www/html/index.html”文件,将里面的mail修改成webmail,然后在浏览器中访问时,报404错误(错误信息见附件)

==== ==== ======== ==== ====
- iRedMail 版本号:0.9.7
- 使用数据库存储用户帐号(MySQL):MYSQL
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 7.3
- 相关日志如下:
==== ==== ====
/var/log/maillog 日志信息如下 (详细信息见附件):
May  4 16:31:23 mail postfix/postscreen[19480]: PASS OLD [14.17.44.30]:53125
May  4 16:31:23 mail postfix/smtpd[19482]: connect from smtpbg335.qq.com[14.17.44.30]
May  4 16:31:23 mail postfix/smtpd[19482]: Anonymous TLS connection established from smtpbg335.qq.com[14.17.44.30]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
May  4 16:31:23 mail postfix/smtpd[19482]: NOQUEUE: reject: RCPT from smtpbg335.qq.com[14.17.44.30]: 451 4.7.1 <17404458119@ctsat.com>: Recipient address rejected: Intentional policy rejection, please try again later; from=<187357181@qq.com> to=<17404458119@ctsat.com> proto=ESMTP helo=<smtpbg335.qq.com>
May  4 16:31:23 mail postfix/smtpd[19482]: disconnect from smtpbg335.qq.com[14.17.44.30]
May  4 16:32:02 mail postfix/postscreen[19480]: CONNECT from [82.165.36.226]:36132 to [10.54.109.191]:25
May  4 16:32:02 mail postfix/postscreen[19480]: PASS OLD [82.165.36.226]:36132
May  4 16:32:02 mail postfix/smtpd[19482]: connect from mail-out.spamhaus.org[82.165.36.226]
May  4 16:32:03 mail postfix/smtpd[19482]: Anonymous TLS connection established from mail-out.spamhaus.org[82.165.36.226]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
May  4 16:32:04 mail postfix/smtpd[19482]: NOQUEUE: reject: RCPT from mail-out.spamhaus.org[82.165.36.226]: 451 4.7.1 <17404458119@ctsat.com>: Recipient address rejected: Intentional policy rejection, please try again later; from=<spamhaus_pbl_verify@spamhaus.org> to=<17404458119@ctsat.com> proto=ESMTP helo=<mail-out.spamhaus.org>
May  4 16:32:04 mail postfix/smtpd[19482]: disconnect from mail-out.spamhaus.org[82.165.36.226]
May  4 16:34:01 mail clamd[2209]: SelfCheck: Database status OK.
May  4 16:34:42 mail postfix/postscreen[27036]: CONNECT from [219.101.223.205]:61460 to [10.54.109.191]:25
May  4 16:34:43 mail postfix/postscreen[27036]: PASS OLD [219.101.223.205]:61460
May  4 16:34:43 mail postfix/smtpd[27122]: connect from unknown[219.101.223.205]
May  4 16:34:43 mail postfix/smtpd[27122]: Anonymous TLS connection established from unknown[219.101.223.205]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
May  4 16:34:43 mail postfix/smtpd[27122]: lost connection after EHLO from unknown[219.101.223.205]
May  4 16:34:43 mail postfix/smtpd[27122]: disconnect from unknown[219.101.223.205]
May  4 16:37:21 mail postfix/postscreen[32773]: CONNECT from [118.201.203.86]:62232 to [10.54.109.191]:25
May  4 16:37:21 mail postfix/dnsblog[32775]: addr 118.201.203.86 listed by domain zen.spamhaus.org as 127.0.0.4
May  4 16:37:27 mail postfix/postscreen[32773]: DNSBL rank 3 for [118.201.203.86]:62232
May  4 16:37:29 mail postfix/postscreen[32773]: DISCONNECT [118.201.203.86]:62232
May  4 16:38:03 mail postfix/anvil[19485]: statistics: max connection rate 1/60s for (smtpd:14.17.44.30) at May  4 16:31:23
May  4 16:38:03 mail postfix/anvil[19485]: statistics: max connection count 1 for (smtpd:14.17.44.30) at May  4 16:31:23
May  4 16:38:03 mail postfix/anvil[19485]: statistics: max cache size 2 at May  4 16:32:02
May  4 16:39:23 mail postfix/postscreen[37321]: CONNECT from [14.17.44.30]:34231 to [10.54.109.191]:25
May  4 16:39:23 mail postfix/postscreen[37321]: PASS OLD [14.17.44.30]:34231
May  4 16:39:23 mail postfix/smtpd[37323]: connect from smtpbg335.qq.com[14.17.44.30]
May  4 16:39:24 mail postfix/smtpd[37323]: Anonymous TLS connection established from smtpbg335.qq.com[14.17.44.30]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
May  4 16:39:24 mail postfix/smtpd[37323]: 96FDE80173827: client=smtpbg335.qq.com[14.17.44.30]
May  4 16:39:24 mail postfix/cleanup[37344]: 96FDE80173827: message-id=<tencent_168BD1CE15198BB15BD001B904B958E02107@qq.com>
May  4 16:39:24 mail postfix/qmgr[5562]: 96FDE80173827: from=<187357181@qq.com>, size=4233, nrcpt=1 (queue active)
May  4 16:39:24 mail amavis[7553]: (07553-03) TempDir::prepare_file: /var/spool/amavisd/tmp/amavis-20180504T163924-07553-4hjBZ5rv/email.txt no longer exists, can't re-use it
May  4 16:39:24 mail amavis[7553]: (07553-03) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 131) line 173.
May  4 16:39:24 mail postfix/smtpd[37323]: disconnect from smtpbg335.qq.com[14.17.44.30]
May  4 16:39:51 mail postfix/10025/smtpd[38394]: connect from localhost[127.0.0.1]
May  4 16:39:51 mail postfix/10025/smtpd[38394]: C99268017383A: client=localhost[127.0.0.1]
May  4 16:39:51 mail postfix/cleanup[37344]: C99268017383A: message-id=<tencent_168BD1CE15198BB15BD001B904B958E02107@qq.com>
May  4 16:39:51 mail postfix/10025/smtpd[38394]: disconnect from localhost[127.0.0.1]
May  4 16:39:51 mail postfix/qmgr[5562]: C99268017383A: from=<187357181@qq.com>, size=4848, nrcpt=1 (queue active)
May  4 16:39:51 mail amavis[7553]: (07553-03) Passed CLEAN {RelayedInbound}, [14.17.44.30]:34231 [14.17.44.30] <187357181@qq.com> -> <17404458119@ctsat.com>, Queue-ID: 96FDE80173827, Message-ID: <tencent_168BD1CE15198BB15BD001B904B958E02107@qq.com>, mail_id: J-ziQv0CmS2o, Hits: 0.363, size: 4233, queued_as: C99268017383A, 27034 ms, Tests: [DKIM_SIGNED=0.1,FREEMAIL_ENVFROM_END_DIGIT=0.25,FREEMAIL_FROM=0.001,HTML_MESSAGE=0.001,MSGID_FROM_MTA_HEADER=0.001,RCVD_IN_DNSWL_NONE=-0.0001,T_DKIM_INVALID=0.01]
May  4 16:39:51 mail postfix/amavis/smtp[37353]: 96FDE80173827: to=<17404458119@ctsat.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=28, delays=0.49/0.02/0/27, 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 C99268017383A)
May  4 16:39:51 mail postfix/qmgr[5562]: 96FDE80173827: removed
May  4 16:39:51 mail postfix/pipe[38396]: C99268017383A: to=<17404458119@ctsat.com>, relay=dovecot, delay=0.11, delays=0.02/0.01/0/0.08, dsn=2.0.0, status=sent (delivered via dovecot service)
May  4 16:39:51 mail postfix/qmgr[5562]: C99268017383A: removed
May  4 16:42:02 mail postfix/postscreen[2536]: CONNECT from [82.165.36.226]:47986 to [10.54.109.191]:25
May  4 16:42:02 mail postfix/postscreen[2536]: PASS OLD [82.165.36.226]:47986
May  4 16:42:02 mail postfix/smtpd[2537]: connect from mail-out.spamhaus.org[82.165.36.226]
May  4 16:42:04 mail postfix/smtpd[2537]: Anonymous TLS connection established from mail-out.spamhaus.org[82.165.36.226]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
May  4 16:42:04 mail postfix/smtpd[2537]: 9D29080173827: client=mail-out.spamhaus.org[82.165.36.226]
May  4 16:42:04 mail postfix/cleanup[2584]: 9D29080173827: message-id=<K7660-51.1525422427@spamhaus.org>
May  4 16:42:04 mail postfix/qmgr[5562]: 9D29080173827: from=<spamhaus_pbl_verify@spamhaus.org>, size=2202, nrcpt=1 (queue active)
May  4 16:42:04 mail amavis[7562]: (07562-03) TempDir::prepare_file: /var/spool/amavisd/tmp/amavis-20180504T164204-07562-1Bs8lcn9/email.txt no longer exists, can't re-use it
May  4 16:42:04 mail amavis[7562]: (07562-03) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 131) line 173.
May  4 16:42:05 mail postfix/smtpd[2537]: disconnect from mail-out.spamhaus.org[82.165.36.226]
May  4 16:42:33 mail postfix/10025/smtpd[3676]: connect from localhost[127.0.0.1]
May  4 16:42:33 mail postfix/10025/smtpd[3676]: 5B4BE80175E8E: client=localhost[127.0.0.1]
May  4 16:42:33 mail postfix/cleanup[2584]: 5B4BE80175E8E: message-id=<K7660-51.1525422427@spamhaus.org>
May  4 16:42:33 mail postfix/10025/smtpd[3676]: disconnect from localhost[127.0.0.1]
May  4 16:42:33 mail postfix/qmgr[5562]: 5B4BE80175E8E: from=<spamhaus_pbl_verify@spamhaus.org>, size=2830, nrcpt=1 (queue active)
May  4 16:42:33 mail amavis[7562]: (07562-03) Passed CLEAN {RelayedInbound}, [82.165.36.226]:47986 [82.165.36.226] <spamhaus_pbl_verify@spamhaus.org> -> <17404458119@ctsat.com>, Queue-ID: 9D29080173827, Message-ID: <K7660-51.1525422427@spamhaus.org>, mail_id: YQ3vvmsFEwgv, Hits: -4.89, size: 2202, queued_as: 5B4BE80175E8E, 28516 ms, Tests: [DKIM_SIGNED=0.1,RCVD_IN_DNSWL_HI=-5,T_DKIM_INVALID=0.01]
May  4 16:42:33 mail postfix/amavis/smtp[2597]: 9D29080173827: to=<17404458119@ctsat.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=29, delays=0.29/0.02/0/29, 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 5B4BE80175E8E)
May  4 16:42:33 mail postfix/qmgr[5562]: 9D29080173827: removed
May  4 16:42:33 mail postfix/pipe[3677]: 5B4BE80175E8E: to=<17404458119@ctsat.com>, relay=dovecot, delay=0.11, delays=0.03/0.01/0/0.08, dsn=2.0.0, status=sent (delivered via dovecot service)
May  4 16:42:33 mail postfix/qmgr[5562]: 5B4BE80175E8E: removed
May  4 16:45:25 mail postfix/anvil[37326]: statistics: max connection rate 1/60s for (smtpd:14.17.44.30) at May  4 16:39:23
May  4 16:45:25 mail postfix/anvil[37326]: statistics: max connection count 1 for (smtpd:14.17.44.30) at May  4 16:39:23
May  4 16:45:25 mail postfix/anvil[37326]: statistics: max cache size 1 at May  4 16:39:23

请问我应该查询 amavisd数据库中的那张表?我看下一下,amavisd库小的所有表都对应不上。

目前iredmail邮箱外发测试的情况如下:
一、163邮箱
     iredmail邮箱 --> 163邮箱    结果:可以收到邮件
     163邮箱 --> iredmail邮箱    结果:接收不到
二、126、QQ、139、新浪、Hotmail
     iredmail邮箱 --> 126、QQ、139、新浪、Hotmail    结果:系统退信
     126、QQ、139、新浪、Hotmail --> 专业邮箱    结果:接收不到


Dec  6 15:18:36 mail postfix/smtp[13684]: SSL_connect error to mxbiz1.qq.com[183.57.48.34]:25: lost connection
Dec  6 15:18:36 mail postfix/smtp[13684]: 8DA1A8018C433: Cannot start TLS: handshake failure
Dec  6 15:18:36 mail postfix/smtp[13684]: Host offered STARTTLS: [mxbiz1.qq.com]
Dec  6 15:18:38 mail postfix/smtp[13684]: 8DA1A8018C433: to=<1234567811@qq.com>, relay=mxbiz1.qq.com[183.57.48.34]:25, delay=122, delays=0.05/0.02/121/1.9, dsn=5.0.0, status=bounced (host mxbiz1.qq.com[183.57.48.34] said: 550 Mail content denied. http://service.exmail.qq.com/cgi-bin/he … no=1000726 (in reply to end of DATA command))
Dec  6 15:18:38 mail postfix/cleanup[10738]: 10AB4801724BE: message-id=<20171206071838.10AB4801724BE@mail.ctsat.com>
Dec  6 15:18:38 mail postfix/bounce[16304]: 8DA1A8018C433: sender non-delivery notification: 10AB4801724BE
Dec  6 15:18:38 mail postfix/qmgr[28548]: 10AB4801724BE: from=<>, size=4350, nrcpt=1 (queue active)
Dec  6 15:18:38 mail postfix/qmgr[28548]: 8DA1A8018C433: removed
Dec  6 15:18:38 mail postfix/pipe[16306]: 10AB4801724BE: to=<234@ctsat.com>, relay=dovecot, delay=0.06, delays=0.02/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service)
Dec  6 15:18:38 mail postfix/qmgr[28548]: 10AB4801724BE: removed
Dec  6 15:21:43 mail postfix/submission/smtpd[20297]: connect from localhost[127.0.0.1]
Dec  6 15:21:43 mail postfix/submission/smtpd[20297]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)

1、根据收发邮件的开始时间、结束时间、邮件标题模糊查询出所有iremail邮件?
2、如果根据开始时间、结束时间查询出这段时间之内登录并发送过邮件的所有邮箱用户?