Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS issue #7

Open
jeanfabrice opened this issue Apr 11, 2017 · 2 comments
Open

TLS issue #7

jeanfabrice opened this issue Apr 11, 2017 · 2 comments

Comments

@jeanfabrice
Copy link
Contributor

Hi,

Neither alpine nor ca-certificates package provide ssl certificate and private key used in your postfix main.cf template

Since smtpd_use_tls is set to true, the postfix daemon reply with :

454 4.7.0 TLS not available due to local problem

to a STARTLS command, which may fool some SMTP client libraries.

Without any ssl certificates, you should defaultly set smtpd_use_tls to false, in order to have Postfix reply with a proper

502 5.5.1 Error: command not implemented

to STARTLS

@witten
Copy link

witten commented Oct 1, 2017

As a work-around, I've found that you can mount /etc/ssl as a (read-only) volume from the host into the container, assuming that you have the missing cert path present on your host.

@bersace
Copy link

bersace commented Mar 19, 2018

For the record, i had to create Debian snakeoil self-signed certificate on host with:

# openssl req  -new -x509 -days 3650 -nodes -sha256 -out /etc/ssl/certs/ssl-cert-snakeoil.pem -keyout /etc/ssl/private/ssl-cert-snakeoil.key

Then setup the containir with :

services:
  smtp:
    image: alterrebe/postfix-relay
    restart: always
    volumes:
    - /etc/ssl:/etc/ssl:ro
    - /usr/share/ssl:/usr/share/ssl:ro
    - /usr/share/ca-certificates:/usr/share/ca-certificates:ro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants