Can't send e-mail from host with SASL authenticated account #4286
-
Following https://github.com/orgs/docker-mailserver/discussions/4253 I'm trying to configure my host server to send e-mails with an SASL authenticated account, through DMS which is running on Docker rootless on this server. What I have:
and
When I send an e-mail from the host, I see this on DMS side
and nothing more on the host side the message has I'm not sure what's going on, I tried adding |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
TL;DR: Best guess is your host Postfix needs to ensure it connects to the port with the expected TLS handshake process, since you chose implicit TLS (port 465), you need to adjust the default in Postfix for the You could perhaps try with a 2nd DMS container running in the same docker network to verify that works? (DMS presently only supports relaying to an MTA over port 25 or 587) If you view our DMS docs for relay host config the bottom section shows what Postfix config is used without any DMS integration, so you could possibly compare that. Maybe try with port 587 too. Actually, it's probably due to the port and similar to the reason DMS presently doesn't support connecting to a relay host over port 465. You'd need to adjust your docker-mailserver/target/postfix/master.cf Lines 31 to 33 in 96bffd7
The equivalent for your host Postfix config is EDIT: DMS could probably add support for this need (or at least better document the below Probable solutionYou should be able to do this by either manual file edit or with this command: postconf -P 'relay/unix/smtp_tls_wrappermode=yes' DMS provides such support via our For reference if you need to change anything else in |
Beta Was this translation helpful? Give feedback.
TL;DR: Best guess is your host Postfix needs to ensure it connects to the port with the expected TLS handshake process, since you chose implicit TLS (port 465), you need to adjust the default in Postfix for the
relay
service to use.You could perhaps try with a 2nd DMS container running in the same docker network to verify that works? (DMS presently only supports relaying to an MTA over port 25 or 587)
If you view our DMS docs for relay host config the bottom section shows what Postfix config is used without any DMS integration, so you could possibly compare that. Maybe try with port 587 too.
Actually, it's probably due to the port and similar to the reason DMS presently doesn't supp…