Skip to content

SMTP Test HTTP 504 (Gateway timeout) for mail address on a different domain #2359

Open
@CodeShakingSheep

Description

@CodeShakingSheep

Version:

  • listmonk: 4.1.0
  • OS: Debian 12

Description of the bug and steps to reproduce:
I have the following setup:

When I run the SMTP test for SMTP 1 it successfully sends out the test mail. However, when I run the SMTP test for SMTP 2 the POST request https://newsletters.domain1.com/api/settings/smtp/test returns a HTTP 504 response (Gateway timeout) and the test doesn't successfully complete. The weird thing is that both SMTP connection 1 & 2 share the same SMTP host and settings. Just the domain is different. Is it generally not possible to use a SMTP connection with an email address having a different custom domain? Attached you can find some screenshot of the POST request. I'm happy to help with more information if required.

This is the request's payload:

{
"uuid":"87ba2bab-9fb0-4e78-9bc0-d15359f71954",
"enabled":true,
"host":"mail<REDACTED_MAIL_HOST>.com",
"hello_hostname":"",
"port":465,
"auth_protocol":"login",
"username":"[email protected]",
"password":"<REDACTED_PASSWORD>",
"email_headers":[],
"max_conns":10,
"max_msg_retries":2,
"idle_timeout":"15s",
"wait_timeout":"5s",
"tls_type":"STARTTLS",
"tls_skip_verify":false,
"strEmailHeaders":"[]",
"email":"<REDACTED_EMAIL>"
}

Screenshots:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions