PureMessage for UNIX: Configuring SMTP Authentication with the MTA IP Blocker (Postfix only)
Sophos recommends enabling the MTA-level IP Blocker as part of an overall strategy to optimize PureMessage performance. If you want to authenticate connections using SMTP-AUTH while MTA-level blocking is enabled, you must modify PureMessage Postfix (SMTP-AUTH is not supported for external Postfix installations nor for any version of sendmail).
When configured as described below, your system permits access for any IP address contained in the $mynetworks parameter, and then checks to see if it's an authenticated connection. If authentication is successful, messages are delivered without further testing. If authentication fails, messages are passed along to the MTA IP Blocker to begin testing.
Since SMTP-AUTH alone is not secure (it sends usernames and passwords over the internet in plain text format), it is recommended that you use SMTP-AUTH in conjunction with Transport Layer Security (TLS), so that this information is encrypted.
What to do
- In
/opt/pmx/postfix/etc/main.cf, edit the thesmtpd_client_restrictionsoption so that it appears as follows:smtpd_client_restrictions = permit_mynetworks,
permit_sasl_authenticated,ignore_policy_error,
check_policy_service inet:localhost:4466The contents of the entry must be in exactly the order that is shown above.
- Support for Dovecot protocol version 1 (server only) was enabled as of PureMessage 5.3.1. Other SASL authentication programs are not supported. See the Dovecot website for installation and configuration instructions.
Add the following lines to
main.cfto enable SASL authentication:smtpd_sasl_type = dovecotsmtpd_sasl_path = private/authsmtpd_sasl_auth_enable = yessmtpd_sasl_authenticated_header = yessmtpd_sasl_security_options = noanonymous - When configuring SMTP-AUTH to work with TLS, also add the following lines:
smtpd_tls_auth_only = yessmtpd_tls_cert_file = PathToServerCertificateFilesmtpd_tls_key_file = PathToPrivateKeyFilesmtpd_use_tls = yessmtpd_tls_loglevel = 1smtpd_tls_received_header = yessmtpd_tls_session_cache_database = btree:PathToSessionCacheFilesmtp_tls_session_cache_database = btree:PathToSessionCacheFileFor details about any of these settings, see the "Postfix Configuration Parameters" documentation on the Postfix website.
If you need more information or guidance, then please contact technical support.
- Article ID: 40280
- Created: 12 Jun 2008
- Last updated: 24 Oct 2008
