🐛 SMTP Verification Fails in Docker with "Connection refused (os error 111)"
Description
When running the backend server inside a Docker container, SMTP-based email verification fails with the following error:
"message": "Connection refused (os error 111)"
This occurs while attempting to verify email reachability.
Steps to Reproduce
- Run the backend service inside a Docker container
- Trigger email validation for a Gmail address (e.g.,
nithin6524@gmail.com)
- Observe the validation response
Expected Behavior
- SMTP verification should successfully connect to the recipient mail server
is_reachable should return a definitive value (true or false)
Actual Behavior
Relevant Output
"smtp": {
"error": {
"type": "IOError",
"message": "Connection refused (os error 111)"
}
}
🐛 SMTP Verification Fails in Docker with "Connection refused (os error 111)"
Description
When running the backend server inside a Docker container, SMTP-based email verification fails with the following error:
This occurs while attempting to verify email reachability.
Steps to Reproduce
nithin6524@gmail.com)Expected Behavior
is_reachableshould return a definitive value (trueorfalse)Actual Behavior
SMTP connection fails with:
is_reachableis returned as"unknown"Relevant Output