alterrebe / docker-mail-relay Goto Github PK
View Code? Open in Web Editor NEWPostfix Mail Relay in a Docker container
License: MIT License
Postfix Mail Relay in a Docker container
License: MIT License
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
#! /usr/bin/env ash
I think it should be bash not ash. Am I right ?
I can't relay messages to Sendgrid using TLS, I get this error in the mailllog
2017-07-31T19:25:14.229313+00:00 smtp postfix/smtpd[312]: warning: cannot get RSA certificate from file "/etc/ssl/certs/ssl-cert-snakeoil.pem": disabling TLS support
2017-07-31T19:25:14.229345+00:00 smtp postfix/smtpd[312]: warning: TLS library problem: error:02001002:system library:fopen:No such file or directory:bio/bss_file.c:255:fopen('/etc/ssl/certs/ssl-cert-snakeoil.pem', 'r'):
2017-07-31T19:25:14.229369+00:00 smtp postfix/smtpd[312]: warning: TLS library problem: error:20074002:BIO routines:FILE_CTRL:system lib:bio/bss_file.c:257:
2017-07-31T19:25:14.229390+00:00 smtp postfix/smtpd[312]: warning: TLS library problem: error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:723:
Later, When I'm trying to send I get this other error.
2017-07-31T19:31:10.154432+00:00 smtp postfix/smtp[537]: SSL_connect error to smtp.sendgrid.net[167.89.125.25]:587: Operation timed out
2017-07-31T19:31:10.155469+00:00 smtp postfix/smtp[537]: C9D798162B: Cannot start TLS: handshake failure
2017-07-31T19:36:10.358940+00:00 smtp postfix/smtp[537]: SSL_connect error to smtp.sendgrid.net[108.168.183.160]:587: Operation timed out
2017-07-31T19:36:10.363822+00:00 smtp postfix/smtp[537]: C9D798162B: to=[email protected], relay=smtp.sendgrid.net[108.168.183.160]:587, delay=640, delays=40/0.04/600/0, dsn=4.7.5, status=deferred (Cannot start TLS: handshake failure)
Any Ideas ?
Thanks, Pablo
I'm using Docker for windows. How I must to edit setting? Thanks
I´ve found out that the mail relay could not connect to a server which offers STARTTLS. To get it working the parameter smtp_tls_security_level = none
must have smtp_tls_security_level = may
in the /etc/postfix/main.cf
.
I had to run
dos2unix docker-mail-relay/{,**/}*.sh
in order to make things work.
I'd love to use this, but without an open source license I'm in grey territory. Could I encourage you to put a license in? (I tend to prefer Apache or MIT, myself.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.