-
|
Hi, i did a lot of searching and reading and maybe i'm overlooking something, but i can't find how to get my host mail delivered to the docker. To clarify what i mean: I have a server someserver.mydomain.com which runs a bunch of dockers. One of them is the DMS docker with the "virtual?" hostname myownmailserver.mydomain.com . Every is working fine, certificates DKIM, SPF, mail delivery mail receiving etc etc. On the server hosting the docker there are some cron tasks which eventually can/may produce some output. How can i get the output of the host-cron-jobs to the docker. Installing an MTA on the host feels like "defeats -the-purpose", besides that, the ports for a full MTA are in use by the DMS docker. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I came up with this simple solution... Anyone conmments? It works like a charm... |
Beta Was this translation helpful? Give feedback.
-
You just need a mail client, which as you noticed can be run from within a container, so a wrapper script works. It's a bit more tricky when trying to deliver mail via port 25 as that has security checks in place, but you can permit this internally of the DMS container via Alternatively you can create an account in DMS specifically for sending such mail and use those credentials from the host (or any other system) to connect over port 587 or 465, which bypasses security checks for port 25 (which should typically only be MTA traffic). If you go this route you may want the ENV The sendmail solution you chose AFAIK avoids ports and will use the mail drop location in Postfix to queue mail for sending without having to deliver into Postfix via SMTP. |
Beta Was this translation helpful? Give feedback.
I came up with this simple solution... Anyone conmments?
It works like a charm...