vestacp exim dovecot in docker
Posted: Thu Aug 16, 2018 5:28 pm
when i test-telnet my server on port 25 i get:
cf012b971d3c is automatically by docker generated hostname also set under /etc/hostname
i have vestacp/exim/dovecot running inside docker.
when i try to send mail via mydomain.com i get as response:
this seems to be the problem: container needs to use host's /etc/hosts /etc/resolv.conf not generate it's own? https://github.com/moby/moby/issues/7851
does --net=host solve the problem?
i could run the container with --hostname=mydomain.com but that allows only one hostname.
i am little confused, what can i do?
i would like to send mail from different hostnames
unlike this https://serverfault.com/questions/75948 ... ts-own-dom, i would like to send from multiple domains that share the same IP.
thanks in advance.
Code: Select all
telnet mydomain.com 25
Trying XX.XXX.XXX.XXX...
Connected to mydomain.com.
Escape character is '^]'.
220 cf012b971d3c ESMTP Exim 4.90_1 Thu, 16 Aug 2018 17:14:12 +0000
EHLO client.localhost
250-cf012b971d3c Hello 083-040-157-037.client.domain [YY.YYY.YY.YY]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-CHUNKING
250-STARTTLS
250 HELP
i have vestacp/exim/dovecot running inside docker.
when i try to send mail via mydomain.com i get as response:
Code: Select all
the problem is: smtp; 550 Please use a fully-qualified domain name for HELO/EHLO
does --net=host solve the problem?
i could run the container with --hostname=mydomain.com but that allows only one hostname.
i am little confused, what can i do?
i would like to send mail from different hostnames
unlike this https://serverfault.com/questions/75948 ... ts-own-dom, i would like to send from multiple domains that share the same IP.
thanks in advance.