Comments (5)
While I don't use K8s, this looks to me like a network configuration problem. Basically, you need to tell K8s to permit the connection from your source container to the destination container. This error is a networking error, not an application error.
from smtp.
I am able to do a curl request on port 587 to the relay container. Obviously it breaks, but the container logs it. So by this I assume the container is reachable from other containers in the cluster.
Can you confirm this configuration should allow all incoming smtp connections to the container?
Should something be changed?
/etc/exim4/update-exim4.conf.conf
:
dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='[0.0.0.0]:587 ; [::0]:587'
dc_readhost=''
dc_relay_domains='*'
dc_minimaldns='false'
dc_relay_nets='10.42.3.40/24:0.0.0.0/0'
dc_smarthost='smtp.gmail.com::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
from smtp.
The important part is dc_local_interfaces
. I currently have it running on plain SMTP and this is my config:
dc_local_interfaces='[0.0.0.0]:25 ; [::0]:25'
You could give it like that a spin, to see how it works (without TLS), maybe you can narrow it down. As for RELAY_NETWORKS
, I keep it on my infrastructure set to :192.168.0.0/16:172.16.0.0/12:10.0.0.0/8
.
from smtp.
@tlex Changing the port to 25 worked. Thank you!
Can you help understand why? I am not familiar with smtp
from smtp.
Basically, port 587 assumes TLS (and everything that comes with it: a certificate). For this to work as expected, the variables KEY_PATH
and CERTIFICATE_PATH
need to be set.
Now, it would probably make sense to test with exim, how's the behavior if the port is set to 587 but there's no certificate there.
Thanks for your feedback, I'll close this now :-)
from smtp.
Related Issues (20)
- DNS lookup fails HOT 1
- User authentication when delivering mails to Exim HOT 2
- Possibility to remove version number from banner? HOT 2
- Persistance - what volumes? HOT 3
- Amazon SES environment variables did not include MAIL FROM values HOT 1
- Get error "lost while reading message data" some time HOT 2
- Remote IP address HOT 2
- GitHub container registry package unavailable HOT 1
- Helm chart HOT 2
- Use as smarthost with authentication? HOT 6
- Document DKIM_KEY support, fix DKIM permission bug HOT 1
- Relay as gmail is sending a copy to inbox HOT 5
- Support for SMTP authentification HOT 1
- Better verbosity control HOT 3
- Active maintenance? HOT 4
- ARMv7 not working HOT 13
- Allow underscores in EHLO HOT 4
- Cannot open main log file "/var/log/exim4/mainlog": Permission denied HOT 2
- retry time not reached for any host for 'mydomain.com' HOT 2
- Is it possible to forward incoming emails? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smtp.