diff --git a/src/checks.c b/src/checks.c index 8e4bc2ccf..80a9c70d2 100644 --- a/src/checks.c +++ b/src/checks.c @@ -3202,9 +3202,7 @@ int init_email_alert(struct mailers *mls, struct proxy *p, char **err) check->xprt = mailer->xprt; check->addr = mailer->addr; - if (!get_host_port(&mailer->addr)) - /* Default to submission port */ - check->port = 587; + check->port = get_host_port(&mailer->addr); //check->server = s; if ((t = task_new(MAX_THREADS_MASK)) == NULL) {