Bug 22372 - dovecot Invalid command 'dh
Summary: dovecot Invalid command 'dh
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Marc Krämer
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-11 13:14 CET by Bit Twister
Modified: 2018-01-11 22:31 CET (History)
0 users

See Also:
Source RPM: dovecot-2.3.0-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Bit Twister 2018-01-11 13:14:41 CET
Description of problem: mga7 dev0

Snippet from 
# cat /var/log/dovecot/errors.log
 master: Warning: Killed with signal 15 (by pid=28393 uid=0 code=kill)
 config: Warning: please set ssl_dh=</etc/dovecot/dh.pem
Jconfig: Warning: You can generate it with: dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dh -inform der > /etc/dovecot/dh.pem

So I pasted it in a root terminal
# dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dh -inform der > /etc/dovecot/dh.pem
142+0 records in
142+0 records out
142 bytes copied, 0.000124657 s, 1.1 MB/s
Invalid command 'dh'; type "help" for a list.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. As root,
dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dh -inform der > /etc/dovecot/dh.pem
David Walser 2018-01-11 21:20:48 CET

Assignee: bugsquad => mageia

Comment 1 Marc Krämer 2018-01-11 22:31:23 CET
man openssl tells me dh is obsoleted and replaced by dhparam.

The config states:
# SSL DH parameters
# Generate new params with `openssl dhparam -out /etc/dovecot/dh.pem 4096`
# Or migrate from old ssl-parameters.dat file with the command dovecot
# gives on startup when ssl_dh is unset.
#ssl_dh = </etc/dovecot/dh.pem

So the "main" problem is, our version of openssl already obsoleted dh, but dhparam works. I'll push a patch, so users don't get irritated.

New package is building, but it changes only the output.

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.