Postfix

Postfix 和 Dovecot - SMTP 上沒有加密

  • July 17, 2020

目前我正在使用自己的郵件伺服器,但目前我無法正確啟動 SMTP。

我使用帶有後綴的 Dovecot。

當我嘗試將我的伺服器添加到我的郵件客戶端時,它告訴我:

傳出:SMTP(我的伺服器地址):587,無 SSL,身份驗證:普通密碼

我不知道為什麼我會得到這個結果,因為我認為我已經完成了所有設置。

直到今天我還沒有使用後綴的經驗,所以我不知道有什麼遺漏或錯誤。

系統:全新的 Debian 10 x64,

安裝了 postfix、dovecot-core、dovecot-imapd 和 dovecot-pop3d。

這是我的後綴main.cf:https://pastebin.com/S17jWDQd 這是我的後綴 master.cf:https://pastebin.com/W0nynZG6 這是我的 dovecot.conf:https : //pastebin.com/tMD90Znn

這些內容大部分是從 iRedMail 安裝中複製的,所以我想我在複製和修改以供自己使用時遺漏了一些東西。

這是我的郵件日誌:

root@bgrsld-mail0:~# tail /var/log/mail.info
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: warning: unsupported dictionary type: pcre (/usr/lib/postfix/postfix-pcre.so: No such file or directory)
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: error: unsupported dictionary type: pcre
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: connect from unknown[192.168.2.110]
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: warning: pcre:/etc/postfix/command_filter.pcre is unavailable. unsupported dictionary type: pcre
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: warning: pcre:/etc/postfix/command_filter.pcre lookup error for "EHLO we-guess.mozilla.org"
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: NOQUEUE: reject: CONNECT from unknown[192.168.2.110]: 421 4.3.0 bgrsld-mail0.intern.bdevgw.de Server local data error
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: disconnect from unknown[192.168.2.110] commands=0/0
Jul 17 17:56:27 bgrsld-mail0 postfix/anvil[7456]: statistics: max connection rate 1/60s for (submission:192.168.2.110) at Jul 17 17:53:07
Jul 17 17:56:27 bgrsld-mail0 postfix/anvil[7456]: statistics: max connection count 1 for (submission:192.168.2.110) at Jul 17 17:53:07
Jul 17 17:56:27 bgrsld-mail0 postfix/anvil[7456]: statistics: max cache size 1 at Jul 17 17:53:07
root@bgrsld-mail0:~# tail /var/log/mail.err
Jul 17 17:33:46 bgrsld-mail0 postfix/submission/smtpd[7335]: error: unsupported dictionary type: pcre
Jul 17 17:36:31 bgrsld-mail0 postfix/submission/smtpd[7444]: error: unsupported dictionary type: pcre
Jul 17 17:36:31 bgrsld-mail0 postfix/submission/smtpd[7444]: error: unsupported dictionary type: pcre
Jul 17 17:36:31 bgrsld-mail0 postfix/submission/smtpd[7444]: error: unsupported dictionary type: pcre
Jul 17 17:36:31 bgrsld-mail0 postfix/submission/smtpd[7451]: error: unsupported dictionary type: pcre
Jul 17 17:36:31 bgrsld-mail0 postfix/submission/smtpd[7451]: error: unsupported dictionary type: pcre
Jul 17 17:36:31 bgrsld-mail0 postfix/submission/smtpd[7451]: error: unsupported dictionary type: pcre
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: error: unsupported dictionary type: pcre
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: error: unsupported dictionary type: pcre
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: error: unsupported dictionary type: pcre
root@bgrsld-mail0:~# tail /var/log/mail.warn
Jul 17 17:36:31 bgrsld-mail0 postfix/submission/smtpd[7451]: warning: pcre:/etc/postfix/command_filter.pcre lookup error for "EHLO we-guess.mozilla.org"
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: warning: unsupported dictionary type: pcre (/usr/lib/postfix/postfix-pcre.so: No such file or directory)
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: error: unsupported dictionary type: pcre
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: warning: unsupported dictionary type: pcre (/usr/lib/postfix/postfix-pcre.so: No such file or directory)
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: error: unsupported dictionary type: pcre
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: warning: unsupported dictionary type: pcre (/usr/lib/postfix/postfix-pcre.so: No such file or directory)
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: error: unsupported dictionary type: pcre
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: warning: pcre:/etc/postfix/command_filter.pcre is unavailable. unsupported dictionary type: pcre
Jul 17 17:53:07 bgrsld-mail0 postfix/submission/smtpd[7454]: warning: pcre:/etc/postfix/command_filter.pcre lookup error for "EHLO we-guess.mozilla.org"

對所示錯誤的明顯修復是安裝postfix-pcre軟體包以提供該功能。Mozilla 自動檢測應該能夠與 Postfix 對話。

引用自:https://serverfault.com/questions/1025664