Support for setting relayhost in main.cf#1104
Support for setting relayhost in main.cf#1104johansmitsnl merged 3 commits intodocker-mailserver:masterfrom
Conversation
If set this value will be used as the relayhost in /etc/postfix/maincf causing all mail to be delivered using this relay host
|
I agree that overall the final configuration is simpler, but I assume that you did just try setting the existing RELAY_HOST and RELAY_PORT settings? For your single domain you should just end up with an |
|
Is this PR ready? |
|
I could fix the typo and tidy up the documentation since, as @crazystick noticed, this probably doesn't interfere with RELAY_HOST after all. Other than that, I have nothing more in mind. This setup is in use on my tiny domain. I did try the RELAY_HOST without user and password and didn't manage to get it to work. But now that I think about it, the reason could have been something completely different. I'll try to find the time to test it again. |
I'm running docker-mailserver for a single domain with ~30 email accounts and all of them forwarding all messages to other email providers. The current RELAY_HOST setting provides much more functionality than I needed and it seems to require that RELAY_USER and RELAY_PASSWORD are also set. However my ISP hasn't provided me with a user and password for the SMTP server and accepts (like most of them do?) SMTP connections from local addresses without authentication.
So the global default relay host setting in main.cf seemed like the simplest solution for my use case.