Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Postfix not starting STARTTLS automatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Postfix not starting STARTTLS automatically



Hello,

I had a problem a little earlier regarding a Postfix configuration problem regarding securing SMTP services. I have done a little work since then and believe I have the problem nailed down. It seems as though STARTTLS isn't automatically being ran.

For example if I just try using openssl to connect to port 465 on my machine:

cemcmac02:~ jdunnett$ openssl s_client -connect cemc.math.uwaterloo.ca:465
CONNECTED(00000003)
3810:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:567:


cemcmac02:~ jdunnett$ openssl s_client -starttls smtp -connect cemc.math.uwaterloo.ca:465
CONNECTED(00000003)
depth=1 /C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/ OU=Certification Services Division/CN=Thawte Premium Server CA/ emailAddress=email@hidden
verify error:num=19:self signed certificate in certificate chain
verify return:0
---
Certificate chain
0 s:/C=CA/ST=Ontario/L=Waterloo Region/O=The University of Waterloo/ CN=cemc.math.uwaterloo.ca
i:/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/ OU=Certification Services Division/CN=Thawte Premium Server CA/ emailAddress=email@hidden
1 s:/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/ OU=Certification Services Division/CN=Thawte Premium Server CA/ emailAddress=email@hidden
i:/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/ OU=Certification Services Division/CN=Thawte Premium Server CA/ emailAddress=email@hidden
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDejCCAuOgAwIBAgIQDC/YQjKakljlfKQc+HurBjANBgkqhkiG9w0BAQUFADCB
zjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJ
Q2FwZSBUb3duMR0wGwYDVQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UE
CxMfQ2VydGlmaWNh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Waterloo/CN=cemc.math.uwaterloo.ca
issuer=/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/ OU=Certification Services Division/CN=Thawte Premium Server CA/ emailAddress=email@hidden
---
No client certificate CA names sent
---
SSL handshake has read 2346 bytes and written 332 bytes
---
New, TLSv1/SSLv3, Cipher is DHE-RSA-AES256-SHA
Server public key is 1024 bit
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1
Cipher : DHE-RSA-AES256-SHA
Session-ID: BF897797677F7AFF942BA23ED89BF0156E397724BA9CAE6F57C081EB58187EE7
Session-ID-ctx:
Master-Key: 251AF373A7FB99918C79965BA09CA1704ACDAE2944D1162E1C9C62076B3299401DBCE0A5 E7C1BE6D5DC9008079185752
Key-Arg : None
Start Time: 1175179428
Timeout : 300 (sec)
Verify return code: 19 (self signed certificate in certificate chain)
---
220 cemc.math.uwaterloo.ca ESMTP Postfix (2.1.5)


The configuration file looks like this:

smtpd_tls_key_file = /etc/certificates/cemc.math.uwaterloo.ca.key
myhostname = cemc.math.uwaterloo.ca
mailbox_transport = cyrus
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
luser_relay =
enable_server_options = yes
smtpd_tls_common_name = cemc.math.uwaterloo.ca
smtpd_enforce_tls = yes
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_sasl_auth_enable = yes
smtpd_use_pw_server = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,pe rmit
smtpd_pw_server_security_options = cram-md5
smtpd_tls_cert_file = /etc/certificates/cemc.math.uwaterloo.ca.crt
message_size_limit = 20971520
mydomain = math.uwaterloo.ca
content_filter = smtp-amavis:[127.0.0.1]:10024
mynetworks = 127.0.0.1/32,129.97.140.1/24
mydestination = $myhostname,localhost. $mydomain,localhost,cemc.math.uwaterloo.ca,cemc.uwaterloo.ca
smtpd_tls_CAfile = /etc/certificates/cemc.math.uwaterloo.ca.chcrt
smtpd_client_restrictions = hash:/etc/postfix/smtpdreject
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virus_db_last_update = 2005-03-20 18:28:14 -0600
server_enabled = 1



I can't see where my configuration might be wrong. Can anyone see anything?


Regards,
Jeff



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.