Postfix and Dovecot – No encryption on SMTP

BDevGW asked:

currently I’m working on my veary own mailserver but as for now I can’t get SMTP up correctly.
I use Dovecot with postfix.
When I try to ad my server to my mail client it tells me:

Outgoing: SMTP (my servers address):587, No SSL, Authentification: Normal password

I don’t know why I get this result since I thought I had everything set up.

I have no experience with postfix till today so I have no idea whats missing or wrong.

System: fresh Debian 10 x64,
installed postfix, dovecot-core, dovecot-imapd and dovecot-pop3d.

Here is my postfix main.cf: https://pastebin.com/S17jWDQd
Here is my postfix master.cf: https://pastebin.com/W0nynZG6
Here is my dovecot.conf: https://pastebin.com/tMD90Znn

Most of these contents are copied from an iRedMail installation so I think I missed something while copying and modifying for my own use.

Here are my mail logs:

[email protected]:~# 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
[email protected]:~# 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
[email protected]:~# 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"

My answer:


The obvious fix for the error shown is to install the postfix-pcre package to provide that capability. The Mozilla autodetection should then be able to talk to Postfix.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.