1.lmtp 7025 connection timeout
2.SSL憑證問題
3.忘記admin密碼
4.http 轉跳 https
5.開啟SMTP驗證無效收件人
6.設定RelayHost(SmartHost)
7.修改預設時區為台灣+8
8.郵件trace
1.lmtp 7025 connection timeout
讓lmtp 使用本地hosts解析,不使用DNS解析
#su - zimbra -c 'zmprov mcf zimbraMtaLmtpHostLookup native'
#su - zimbra -c zmmtactl restart
2.SSL憑證問題
#mkdir /opt/zimbra/ssl/letsencrypt
#cd /opt/zimbra/ssl/letsencrypt
安裝SSL憑證
/root/.acme.sh/acme.sh –installcert
下載CA
https://letsencrypt.org/certs/isrgrootx1.pem.txt
編輯 fullchain.cer 並把CA内容放在最上面
驗證憑證是否正常
#su - zimbra
#/opt/zimbra/bin/zmcertmgr verifycrt comm key cert fullchain.cer
Valid Certificate: cert.pem: OK
部屬憑證
把KEY 安裝到指定路徑
#cp /opt/zimbra/ssl/letsencrypt/key /opt/zimbra/ssl/zimbra/commercial/commercial.key
#/opt/zimbra/bin/zmcertmgr deploycrt comm cert CA
3.忘記admin密碼
查看目前所有帳戶
#su - zimbra -c 'zmprov -l gaa'
變更密碼
#su - zimbra -c 'zmprov sp [email protected] password'
4.http 轉跳 https
Zimbra 8版本後預設不開啟http
#su - zimbra -c 'zmprov ms mail.test.com zimbraReverseProxyMailMode redirect'
#su - zimbra -c 'zmproxyctl restart'
5.開啟SMTP驗證無效收件人
#su - zimbra -c 'zmprov mcf zimbraMtaSmtpdRejectUnlistedRecipient yes'
#su - zimbra -c 'zmmtactl restart'
#su - zimbra -c 'zmconfigdctl restart'
6.設定RelayHost(SmartHost)
#su - zimbra -c 'zmprov mcf zimbraMtaRelayHost 10.187.201.3'
#su - zimbra -c "zmprov mc default zimbraPrefTimeZoneId '(GMT+08.00) Taipei'"
8.郵件trace
#grep "from=<[email protected]>" /var/log/maillog
May 22 17:16:30 mail1 postfix/smtpd[20549]: NOQUEUE: filter: RCPT from mail-pj1-f52.google.com[209.85.216.52]: <[email protected]>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=
May 22 17:16:30 mail1 postfix/smtpd[20549]: NOQUEUE: filter: RCPT from mail-pj1-f52.google.com[209.85.216.52]: <[email protected]>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10024; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=
May 22 17:16:30 mail1 postfix/qmgr[4382]: A169111DC1A9: from=<[email protected]>, size=4111, nrcpt=1 (queue active)
May 22 17:16:39 mail1 postfix/qmgr[4382]: 9C67B117D265: from=<[email protected]>, size=5031, nrcpt=1 (queue active)
#grep 9C67B117D265 /var/log/maillog
May 22 17:16:39 mail1 postfix/amavisd/smtpd[20568]: 9C67B117D265: client=localhost[127.0.0.1]
May 22 17:16:39 mail1 postfix/cleanup[20555]: 9C67B117D265: message-id=<CANpNLdEgxV_vYm0OC=c0s9qPXdyg58vHVupA2hjLnNxQMRuzDw@mail.gmail.com>
May 22 17:16:39 mail1 postfix/qmgr[4382]: 9C67B117D265: from=<[email protected]>, size=5031, nrcpt=1 (queue active)
May 22 17:16:39 mail1 postfix/smtp[20557]: A169111DC1A9: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=9.4, delays=0.28/0.07/1.5/7.6, 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 9C67B117D265)
May 22 17:16:40 mail1 postfix/lmtp[20569]: 9C67B117D265: to=<[email protected]>, relay=mail1.syhdjd.com[10.187.113.99]:7025, delay=0.44, delays=0.02/0.01/0.09/0.31, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
May 22 17:16:40 mail1 postfix/qmgr[4382]: 9C67B117D265: removed
確定有進入Mailbox
查看Mailbox
#su - zimbra -c 'zmmailbox -z -m [email protected] s -t message -l 1000 "in:Inbox"'
查看垃圾郵件區
#su - zimbra -c 'zmmailbox -z -m [email protected] s -t message -l 1000 "in:Trash"'