Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm getting ready to deploy a new SMTP server, and I'm not sure how to ensure that it is using strong encryption. The server software is Postfix running only SMTP. I've added the following to the file (stolen from here):

smtpd_tls_mandatory_ciphers = high
smtpd_tls_mandatory_exclude_ciphers = aNULL, MD5
smtpd_tls_security_level = encrypt
smtpd_tls_mandatory_protocols = TLSv1
# Also available with Postfix ≥ 2.5:
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3

Restarted the daemon and everything seems to work as intended, but I'm not sure how to test that only the strong cyphers are enabled. The following allows me to connect, but I'm not sure which combination of flags (-no_ssl3, -no_tls1, etc) to use in order to ensure that only the strong encryption is enabled.

openssl s_client -starttls smtp -crlf -connect
share|improve this question
up vote 6 down vote accepted

You can test the individual ciphers using the -cipher <cipherspec> option (see the OpenSSL manual for more info on this option and how to write cipher specifications).

In your case you can specify a cipherspec of all the low-grade ciphers that you don't want to use, and your server should reject the attempt.
You should also test the ciphers you want to use (individually) to be sure they work.

share|improve this answer
The actual cipher list backing the high configuration is in the tls_high_cipherlist config parameter, so review that to determine what should and should not be enabled. Odd that they enable RC4 by default, for instance, so you'll have that enabled and be able to connect with it when you may not expect to. – Shane Madden Sep 16 '11 at 16:25
@ShaneMadden - This is why I explicitly specify my ciphers. A little paranoia is a good thing - now if you'll excuse me I need to install more locks on my door... – voretaq7 Sep 16 '11 at 16:30
Two words, Vore. Lock Bumping: – Jack M. Sep 16 '11 at 16:35
@JackM - Thats why you need at least a few disc-tumbler locks, and at least one electronic :) – voretaq7 Sep 16 '11 at 16:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.