-
I'm confused... I have a Mailrise container running in Docker from the yoryan/mailrise image. It connects directly to the LAN with its own IP address through a macvlan bridge, and is configured with a bind mount to /etc/mailrise/mailrise.conf. Following is a snippet of the mailrise.conf file...
This works well using 8025, and still works with 8025 even after specifying port 25 in the config. However, it won't work when port 25 is used to send the message. I get the following error...
Am I specifying the port incorrectly in the config file? EDIT: Port 25 works after recreated the container using the default Docker bridge, rather than a macvlan bridge, and publishing container port 8025 to host port 25. Rather than mailrise.home having a static LAN IP on the LAN and an address record in my DNS server, I now use mailrise.xyz as a DNS alias for the host, and emails are sent to @mailrize.xyz. The simplified config is now...
I prefer the first method. Is there any way for the listen.port option to work? It doesn't appear to have any affect using the yoryan/mailrise image |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
YAML doesn't require you to prefix everything with configs:
smtp:
hostname: mailrise.home
listen:
port: 25
[email protected]:
urls:
- pover://asfasdfasdfasdfasdfasdf@asfdasdfasdfasdfasdf As always, you can run your YAML through the Online YAML Parser to get a sense of the underlying JSON structure. Try out both versions of the config to see what changes. 👍 |
Beta Was this translation helpful? Give feedback.
YAML doesn't require you to prefix everything with
-
; that particular token means you're inserting a list, which is not what you wanted. Here is the corrected version of your original config:As always, you can run your YAML through the Online YAML Parser to get a sense of the underlying JSON structure. Try out both versions of the config to see what changes. 👍