Closed dangngoctam00 closed 1 year ago
This is my mistake, after some researching, I've found that if I provide FAKESMTP_BIND_ADDRESS
env, server socket only allow connection from same network interface. So if I use docker to run fake-stmp server, I should remove this env.
I've created a docker-compose file like this:
After running, the log of container looks fine and SMTP started at port 1025.
But I cannot connect to server by spring-boot application or
telnet
client. The error from Spring is[JavaMail: MessagingException: Got bad greeting from SMTP host: EOF
, and error fromtelnet
isConnection closed by foreign host.
I've tried many times but it still hasn't worked. I think there is some error with smtp server. Thank you.