How to configure relay host with only supported config files? #3605
Replies: 2 comments 1 reply
-
The docs have this big mention: In our scripts, you can see this requirement is currently required: docker-mailserver/target/scripts/helpers/relay.sh Lines 172 to 195 in 5efd249 You will need to create the real final configs used internally for Postfix, or enable From what I can see:
Thus you can set TL;DR: You could try an empty Technical walk-through of current support implementation in DMSWhen this feature is enabled it will set the following: docker-mailserver/target/scripts/helpers/relay.sh Lines 165 to 170 in 5efd249
This is applying to all outbound mail from the looks of it, so DMS becomes a relayhost only and doesn't look like it supports sending mail outbound without going through a relay. These two settings are related and at a glance imply a default configured
I assume if Here we can see your docker-mailserver/target/scripts/helpers/relay.sh Lines 109 to 128 in 5efd249 In that same method there is this TODO comment, that notes an improvement would be to use a default relay host, with support for opt-out of other sender domains, or the ability to adjust the transport (not implemented): docker-mailserver/target/scripts/helpers/relay.sh Lines 136 to 139 in 5efd249 For the SASL password config, you can see that it is requiring either docker-mailserver/target/scripts/helpers/relay.sh Lines 60 to 68 in 5efd249 There is also some parts of this script file that reference a relayhost by calling this method: docker-mailserver/target/scripts/helpers/relay.sh Lines 47 to 58 in 5efd249 That will use Legacy SASL password line added if both the docker-mailserver/target/scripts/helpers/relay.sh Lines 86 to 89 in 5efd249 The other usage looks at your docker-mailserver/target/scripts/helpers/relay.sh Lines 149 to 160 in 5efd249 Both are legacy and should not be relied on. As noted by comments, the current support is not done well: docker-mailserver/target/scripts/helpers/relay.sh Lines 99 to 101 in 5efd249 docker-mailserver/target/scripts/helpers/relay.sh Lines 103 to 108 in 5efd249 Finally, that doc page I don't think has been updated really since it the migration from Github Wiki to the nicer docs site. There is another related ENV called docker-mailserver/target/scripts/helpers/relay.sh Lines 175 to 178 in 5efd249 |
Beta Was this translation helpful? Give feedback.
-
This will be supported (no relay ENV settings required, just the relay config files) with the upcoming v14 release: #3845 However, DMS still lacks support for the regular SMTP sending without credentials when a relay host has been configured with credentials. NOTE: Quoted content has been altered slightly, notably |
Beta Was this translation helpful? Give feedback.
-
Hi guys. I'm a new user of docker mailserver.
I'm unable to work with relayhost setup. According to this tutorial https://docker-mailserver.github.io/docker-mailserver/edge/config/advanced/mail-forwarding/relay-hosts/#introduction RELAY* variables in env file are empty
My postfix-sasl-password.cf file:
@domain1.it <username_hidden>:<password_hidden>
and my postfix-relaymap.cf:
@domain2.it
@domain1.it [email-smtp.eu-west-1.amazonaws.com]:587
@domain3.it
But all email sent with @domain1.it aren't sent with relayhost
What am I doing wrong?
Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions