Closed dmikushin closed 1 year ago
You probably have your host name resolving to 127.0.1.1 in /etc/hosts. This is what linux installs often do (possibly because it gets its (fixed) IP through DHCP? not sure). If you remove that line, or replace 127.0.1.1 with the actual IP, I think that will resolve the problem.
I would not recommend to let mox listen on that IP due to the SPF configuration.
I'll be adding a warning to the quickstart if the host name resolves to a 127.0.0.0/8 address. It was already in the code as a todo, see https://github.com/mjl-/mox/blob/main/quickstart.go#L317 and https://github.com/mjl-/mox/blob/main/quickstart.go#L308.
Thanks for the report!
Thanks, you are right, I have 127.0.1.1 in /etc/hosts
!
127.0.1.1 xxxxxxxxxxx xxxxxxxxxxx
I've replaced 127.0.1.1 in /etc/hosts with 10.0.0.67 - an actual address of the main network interface reported by ifconfig
and now email delivery to Mox itself works! Thanks a lot for pointing me to this.
I've been testing Mox installation on the host system (without Docker). Receiving mail works well, sending mail does not work. To test the simpest case, I've asked Mox to send mail to itself - and it fails, please see the error log below. No, I have no idea why it tries to connect to 127.0.1.1, I don't have such address in
mox.conf
, it's only 127.0.0.1 there for internal use.