1

Topic: beef up TLS security

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Centos 7  3.10.0-514.26.2.el7.x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): APACHE
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Have done some tests to verify the status of TLS and certificates used,
like the one on https://www.htbridge.com/ssl/
The goal is to get a "GRADE A" for PCI DSS requirements.

When runnig a test on a "vanilla installed" iredMail server, using a commercial domain ceretificate, the result was "B-"
with the following comments: (among others)
   SERVER DOES NOT HAVE CIPHER PREFERENCE
   The server does not prefer cipher suites. We advise to enable this feature in order to enforce usage of the best cipher 
    suites selected.
In order to get an "A" grade, postfix needs the following changes in main.cf
     smtpd_tls_mandatory_ciphers = high
     tls_preempt_cipherlist = yes

In addition to this, I also followed the hints in  https://weakdh.org/sysadmin.htm and recreated the 2048_dhparams.pem file.
After these changes, the results was "Grade A"

Then there are also comments about additional insecure protocols, that could be disabled via the line
    smtpd_tls_exclude_ciphers =
but havn't yet changed the default values.

Anyone else on this Forum having mending the TLS security to maximize NIST or other regularities, to share ideas or recomendations?
Regards, 
swejun

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by RikuS 2017-08-09 03:48:54)

Re: beef up TLS security

Here's a creat tool for secure Apache/Nginx settings with proper cipher suites:
https://mozilla.github.io/server-side-t … generator/

Use the modern settings and enable HSTS and you'll get A+ grade for your server with SSL Labs server test:
https://www.ssllabs.com/ssltest/

3

Re: beef up TLS security

Thanks. from A to A+ on  Apache

For the SMTP part, being to strict might cause the connected client to fall back to clear text, but for transmision (port 587 for imap clients) one might be more strict on the cipher set.

Please feel free to hijack the thread for TLS related settings and/or  PCIDSS/NIST  requirements
/Regards