These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Virtualmin and PFS on the new forum.
I am thinking about setting up Postfix and Dovecot for PFS, do you see any issues with virtualmin then? As long as i enable the SSL Certs for the Mailservers as well? Or is there any pitfall to avoid in the first place? Don't want to screw everything up, while it is working perfectly :-)
Thank you and Best j_m
Howdy,
Hmm, I'm not familiar with PFS. Can you describe how that setup might work?
-Eric
you need Postfix greater 2.6 (best 2.8 or up) and openssl greater 0.9 better 1.0 or up.
You need to create two Diffie Hellman Keys and put them in maincf:
openssl gendh -out /etc/postfix/dh_512.pem -2 512
openssl gendh -out /etc/postfix/dh_1024.pem -2 1024
postconf -e "smtpd_tls_dh1024_param_file = /etc/postfix/dh_1024.pem"
postconf -e "smtpd_tls_dh512_param_file = /etc/postfix/dh_512.pem"
postconf -e "smtpd_tls_eecdh_grade = strong"
postconf -e "tls_preempt_cipherlist = yes"
postconf -e "smtpd_tls_loglevel = 1"
postconf -e "smtp_tls_loglevel = 1"
postfix reload
tls_preempt will only be executed from Postfix 2.8 or up, the older versions will ignore this setting.
Dovecot should be 2.1, better 2.2.x
Dovecot uses PFS, but it is not being found in logfiles. Therefore /etc/dovecot/conf.d/10-logging.conf has to be changed into:
login_log_format_elements = "user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k"
Now test the setup:
openssl s_client -starttls smtp -connect mail.example.com:25
openssl s_client -starttls imap -connect imap.example.com:143
EDIT: Here use your own mailserveradress for testing instead of example.com
The output should read something like this:
Protocol : TLSv1.2
Cipher : ECDHE-RSA-AES256-GCM-SHA384
So they say, but didn't try it yet.
Bump :-)