Local smtp server

I have installed and configured mailhog on port 8025 on my local server on which I have installed tutor with openedx. I am not receiving any email on my local mailhog server. I have checked the openedx SMTP configuration also but its default to 8025. My local lms is on local.overhang.io. When I ping local.overhang.io it response with loopback address 127.0.0.1.

I have registered through Signup form on lms and used the user email address demozj10@local.overhang.io. But it gives me this error connection refused in log:

tutor_local-smtp-1  | 2022-10-12 11:23:10 1oiZpO-00000N-KX <= contact@local.overhang.io H=(0d0d1c3896ff) [172.18.0.7] P=esmtp S=11824 id=166557379063.53.16259493615777816282@0d0d1c3896ff
tutor_local-smtp-1  | 2022-10-12 11:23:10 1oiZpO-00000N-KX H=local.overhang.io [172.18.0.16] Connection refused
tutor_local-smtp-1  | 2022-10-12 11:23:10 1oiZpO-00000N-KX == demozj10@local.overhang.io R=dnslookup T=remote_smtp defer (111): Connection refused

I have tested my mailhog with telnet local.overhang.io 8025 and it works well.

Am I missing something?

got it working with docker host IP address in SMTP_HOST instead of local domain name

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.