Article View: news.software.readers
Article #238423Re: slrn: reply on Mac
From: Michael Grimm
Date: Wed, 25 Nov 2009 19:44
Date: Wed, 25 Nov 2009 19:44
100 lines
4991 bytes
4991 bytes
Martin Trautmann <t-use@gmx.net> wrote: > I don't know about "SSL over SMTP" (SSMTP) on Port 465 > vs. StartTLS on Port 25 yet. [...] > Any further ideas how postfix would > have to be configured? Well it'been some time that I set this up, but may be it'll guide you to get your configuration done (starting Leopard, now Snow Leopard). 1) I'm using SSL over SMTP on port 465 become admin (su - admin) for the following: 2) /etc/aliases root: your-local-user-name 3) /etc/postfix/main.cf # (added) myorigin = your-domain.tld relayhost = your-providers-mail-server.tld:465 smtp_enforce_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_passwords smtp_sasl_security_options = smtp_sasl_tls_security_options = smtp_sasl_tls_verified_security_options = # optional if you wan to see what's going on with the TLS negotiation in # /var/log/mail.log # smtp_tls_loglevel = 2 smtp_tls_CAfile = /System/Library/OpenSSL/certs/cert.pem smtp_tls_per_site = hash:/etc/postfix/smtp_tls_sites smtp_use_tls = yes tls_random_source = dev:/dev/urandom # (end) 4) import your mail provider's CERT key into your keychain access list (login part) 5) /System/Library/OpenSSL/certs/cert.pem (create) sudo touch /System/Library/OpenSSL/certs/cert.pem sudo chmod 666 /System/Library/OpenSSL/certs/cert.pem sudo security find-certificate -a -p \ /System/Library/Keychains/SystemRootCertificates.keychain > \ /System/Library/OpenSSL/certs/cert.pem sudo chmod 644 /System/Library/OpenSSL/certs/cert.pem 6) /etc/postfix/smtp_sasl_passwords (600 root:wheel) your-providers-mail-server.tld your-remote-user-name:your-secret-password 7) /etc/postfix/smtp_tls_sites (644 root:wheel) your-providers-mail-server.tld MUST_NOPEERMATCH ,----[ forgotten link I used for configuration ]- | The MUST_NOPEERMATCH in the smtp_tls_sites file ignores certificate | mismatches when negotiating TLS. This, overall, is not a good idea, but | I didn't have time to play with it yet and configure the CA. Other | options are NONE, MAY, and MUST, but some will require configuration of | the CA so that a trust can be established with the server. This, I | believe, is configured with smtp_tls_CAfile. When I get it working, I | may post an update. | | Here's the update for the SSL certificate verification: | | If you want the verification process to work, you’ll need to provide | valid certificate authority (CA) certificates to OpenSSL via postfix. | For some reason, my computer did not have the default OpenSSL root CA | certificates installed. So, I decided to import them from the system | root CA keychain. | | Run the following: | | security find-certificate -a -p | /System/Library/Keychains/SystemRootCertificates.keychain > | /System/Library/OpenSSL/certs/cert.pem | | Include the following in /etc/postfix/main.cf: | | smtp_tls_CAfile = /System/Library/OpenSSL/certs/cert.pem | | Now you can change the MUST_NOPEERMATCH to just MUST, and the | certificate verification should succeed if the certificate was signed | with one of the system-accepted root certificates. `---- 8) sudo postmap /etc/postfix/smtp_sasl_passwords sudo postmap /etc/postfix/smtp_tls_sites 9) restart/reload postfix (or reboot) That shoud do the trick, if I haven't forgotten some important part to add to my change notes ;-) And, the upgrade from Leopard to Snow Leopard didn't overwrite these modifications, as I found out some minutes ago. (And, sorry for exceeding 80 character per line.) Regards, Michael -- to let
Technical Details
Message-ID:
<hek1f6$1bjm$1@de-l.enfer-du-nord.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!not-for-mailReferences:
<slrnhgo518.754.t-use@ID-685.user.individual.de> <hehh20$udv$1@news.davenulle.org> <slrnhgpokb.6pv.t-use@ID-685.user.individual.de> <20091125114507.537.slrn@krille.blacktrash.org> <slrnhgq8q1.754.t-use@ID-685.user.individual.de>Show Full Headers
Complete Article Headers
Message-ID: <hek1f6$1bjm$1@de-l.enfer-du-nord.net> Subject: Re: slrn: reply on Mac Date: Wed, 25 Nov 2009 19:44:38 +0000 From: Michael Grimm <trashcan@odo.in-berlin.de> References: <slrnhgo518.754.t-use@ID-685.user.individual.de> <hehh20$udv$1@news.davenulle.org> <slrnhgpokb.6pv.t-use@ID-685.user.individual.de> <20091125114507.537.slrn@krille.blacktrash.org> <slrnhgq8q1.754.t-use@ID-685.user.individual.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!not-for-mail Newsgroups: news.software.readers Organization: ATK - Alternative Tierklinik links der Einfalt Lines: 100 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: de-l.enfer-du-nord.net eJwFwQkBwDAIA0BLvMmQA23xL2F36VAcBhKRm9tFWV5J6nD19moYVsxOyb433igXGWxpQwu085GfT8qc5q22p1L+UOPxA8OxGWM= X-Complaints-To: abuse@de-l.enfer-du-nord.net Cancel-Lock: sha1:ghF+gpSstXZimfXJ4QG9t3m+2A0= User-Agent: slrn/pre1.0.0-15/mm/ao (Darwin) Mail-Copies-To: nobody