We are experiencing a problem that seems to manifest *only* when delivering to MXs that exhibit the SSL problem described by Viktor[1] AND connection caching is enabled on demand. I am still reviewing the logs to understand this, but at first glance, it appears that we try to deliver mail to MXs that (in DNS) are not associated with the destination domain, e.g.:
May 6 12:00:04 mx2 postfix/smtp[26171]: SSL_connect error to iron1-mx.tops.gwu.edu[128.164.127.227]:25: -1 May 6 12:00:04 mx2 postfix/smtp[26171]: warning: TLS library problem: error:1407741A:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert decode error:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:762: May 6 12:00:04 mx2 postfix/smtp[26171]: 4416951CD: Cannot start TLS: handshake failure ... May 6 12:00:05 mx2 postfix/smtp[26118]: 751AE5215: to=<[email protected]>, relay=iron1-mx.tops.gwu.edu[128.164.127.227]:25, conn_use=2, delay=3.3, delays=0.02/3.1/0.08/0.15, dsn=5.0.0, status=bounced (host iron1-mx.tops.gwu.edu[128.164.127.227] said: 550 #5.1.0 Address rejected. (in reply to RCPT TO command)) May 6 12:00:07 mx2 postfix/smtp[26240]: 3C02D52D2: to=<[email protected]>, relay=iron1-mx.tops.gwu.edu[128.164.127.227]:25, conn_use=3, delay=3.9, delays=0.1/3.5/0.07/0.15, dsn=5.0.0, status=bounced (host iron1-mx.tops.gwu.edu[128.164.127.227] said: 550 #5.1.0 Address rejected. (in reply to RCPT TO command)) May 6 12:00:07 mx2 postfix/smtp[25609]: A9657525C: to=<[email protected]>, relay=iron1-mx.tops.gwu.edu[128.164.127.227]:25, conn_use=4, delay=4.7, delays=0.01/4.5/0.07/0.15, dsn=5.0.0, status=bounced (host iron1-mx.tops.gwu.edu[128.164.127.227] said: 550 #5.1.0 Address rejected. (in reply to RCPT TO command)) another example: May 6 10:31:44 mx2 postfix/smtp[6133]: SSL_connect error to smtp.citrix.com[66.165.176.89]:25: -1 May 6 10:31:44 mx2 postfix/smtp[6133]: warning: TLS library problem: error:1407741A:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert decode error:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:762: May 6 10:31:44 mx2 postfix/smtp[6133]: 59013110C: Cannot start TLS: handshake failure ... May 6 10:31:47 mx2 postfix/smtp[5241]: 9AC2B1145: to=<[email protected]>, relay=smtp.citrix.com[66.165.176.89]:25, conn_use=2, delay=63, delays=0.11/62/0.2/0.39, dsn=5.0.0, status=bounced (host smtp.citrix.com[66.165.176.89] said: 550 #5.1.0 Address rejected. (in reply to RCPT TO command)) May 6 10:31:48 mx2 postfix/smtp[5918]: A9BD01152: to=<[email protected]>, relay=smtp.citrix.com[66.165.176.89]:25, conn_use=3, delay=64, delays=0.11/63/0.21/0.46, dsn=5.0.0, status=bounced (host smtp.citrix.com[66.165.176.89] said: 550 #5.1.0 Address rejected. (in reply to RCPT TO command)) May 6 10:31:49 mx2 postfix/smtp[6082]: EDFBF1181: to=<[email protected]>, relay=smtp.citrix.com[66.165.176.89]:25, conn_use=4, delay=64, delays=0.16/64/0.21/0.39, dsn=5.0.0, status=bounced (host smtp.citrix.com[66.165.176.89] said: 550 #5.1.0 Address rejected. (in reply to RCPT TO command)) As a temporary workaround, we set 'smtp_tls_security_level = none', and disabled on-demand connection caching; the problem has not recurred. Obviously, the above log excerpts are incomplete; I am happy to share the entire (large) logfile if that would be helpful for diagnosis. This is 2.12-20140109. postconf -n, from before we made the configuration changes noted above: message_size_limit = 20480000 mynetworks = [ ... ] mynetworks_style = host relay_domains = hash:/usr/local/etc/postfix/relay_domains smtp_bind_address6 = [ ... ] smtp_tls_CAfile = /usr/local/etc/postfix/certs/ca.pem smtp_tls_cert_file = /usr/local/etc/postfix/certs/server.crt smtp_tls_key_file = /usr/local/etc/postfix/certs/server.key smtp_tls_loglevel = 0 smtp_tls_note_starttls_offer = yes smtp_tls_security_level = may smtpd_authorized_verp_clients = $mynetworks smtpd_banner = $myhostname ESMTP $mail_name (Postfix FTW!) smtpd_helo_required = yes smtpd_recipient_restrictions = [ ... ] smtpd_tls_CAfile = /usr/local/etc/postfix/certs/ca.pem smtpd_tls_ccert_verifydepth = 1 smtpd_tls_cert_file = /usr/local/etc/postfix/certs/server.crt smtpd_tls_key_file = /usr/local/etc/postfix/certs/server.key smtpd_tls_mandatory_protocols = SSLv3, TLSv1 smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache transport_maps = hash:/usr/local/etc/postfix/transport [1] http://article.gmane.org/gmane.mail.postfix.user/243056 -- Sahil Tandon
