Tuesday, June 11, 2013

Enabling TLS in the Postfix SMTP server ?


By default, TLS is disabled in the Postfix SMTP server, so no difference to plain Postfix is visible. Explicitly switch it on with “smtpd_tls_security_level = may”.

Example:

/etc/postfix/main.cf

smtpd_tls_security_level = may
 
With this, the Postfix SMTP server announces STARTTLS support to remote SMTP clients, but does not require that clients use TLS encryption.

Note: when an unprivileged user invokes “sendmail -bs”, STARTTLS is never offered due to insufficient privileges to access the Postfix SMTP server private key. This is intended behavior.

You can ENFORCE the use of TLS, so that the Postfix SMTP server announces STARTTLS and accepts no mail without TLS encryption, by setting “smtpd_tls_security_level = encrypt”. According to RFC 2487 this MUST NOT be applied in case of a publicly-referenced Postfix SMTP server. This option is off by default and should only seldom be used.

Example:
/etc/postfix/main.cf
smtpd_tls_security_level = encrypt
 
Source : http://www.postfix.org/TLS_README.html 

Common Issues with Plesk Server

 How do I restart Parallels Plesk Panel?


This can be done using the following commands when logged in as root via SSH on the Parallels Plesk Panel (PP) server:
Parallels Plesk Panel for Linux:

~# /etc/init.d/psa stop
 
~# /etc/init.d/psa start