Package: opensmtpd-extras Version: 5.7.1-3 I have installed opensmtpd and opensmtpd-extras on a fresh Debian Strech installation.
I have generated a password using the command: # smtpctl encrypt This is my OpenSMTPD configuration file: --- # cat /etc/smtpd.conf # This is the smtpd server system-wide configuration file. # See smtpd.conf(5) for more information. # The pki setup. pki serv1.example.com certificate "/etc/ssl/serv1.example.com.crt" pki serv1.example.com key "/etc/ssl/private/serv1.example.com.key" # Tables used for domains, users, passwords and aliases. table aliases file:/etc/mail/aliases table domains file:/etc/mail/domains table passwd passwd:/etc/mail/passwd table virtuals file:/etc/mail/virtuals # Ports to listen on. listen on lo listen on enp0s3 port 25 tls pki serv1.example.com listen on enp0s3 port 587 tls-require pki serv1.example.com auth <passwd> # Allow local delivery. accept from local for local alias <aliases> deliver to lmtp "/var/run/dovecot/lmtp" rcpt-to # Allow virtual domains. accept from any for domain <domains> virtual <virtuals> deliver to lmtp "/var/run/dovecot/lmtp" rcpt-to # Allow outgoing emails. accept from local for any relay --- Now, I have tried several different setups in the password file, but no matter what I do OpenSMTPD cannot read the file: --- # smtpd -vvvd -f /etc/smtpd.conf ... warn: table-passwd: invalid entry warn: table-passwd: error parsing config file warn: table-proc: imsg_read: Connection reset by peer fatal: table-proc: exiting warn: parent -> lka: pipe closed --- I have a running OpenBSD 6.2 server where I have copied the passwd file to Debian and tried with that, but I get the same error. On my OpenBSD box the passwd file looks like this (following the exact example from the OpenSMTPD FAQ) and it's working on OpenBSD: --- f...@example.com:$2b$10$iziy9n1wNjlcJ5Bf4wcd2OO3Mr8ssAIt/JZUmn9E6EdK2KMHlMfB6::::: --- On Debian, using the same command to create the password creates another kind of string generated, but neither works anyway: --- f...@example.com:$6$8PfdjgX6RXPbB7CB$NeSd4vYBXqj6SYIG3ke6RW2VlktZk4rdBWdx8o8dn7qx7ZKXliYoa/eRL7vUuo.Ayc8iBhQUYegx6sBFiY0Ht0::::: --- I have tried with various settings like (password has been shortened): --- f...@example.com:$6$8Pfdjg::::: f...@example.com $6$8Pfdjg::::: foo:$6$8Pfdjg::::: foo $6$8Pfdjg::::: f...@example.com:$6$8Pfdjg f...@example.com $6$8Pfdjg foo:$6$8Pfdjg foo $6$8Pfdjg foo --- No matter what setup I use I get the same error. I suspect something is wrong with the table-passwd filter? Kind regards, Martin