Having trouble getting Mattermost to connect to Postfix. I’ve read the other threads I’ve been able to find, but so far I haven’t found anything that seems to be helping. Looking for some assistance in figuring out what I have wrong.
OS = Ubuntu 22.04.4 LTS
Mattermost is installed via apt, version 9.8.1-0
Postfix installed via apt, version 3.6.4-1ubuntu1.3
DNS entries for domain are all set and I can send an email via the CLI. But not matter what I put in the Mattermost SMTP settings I can’t get the test connection button to be successful.
My understanding is that by using localhost in the SMTP Host field it should not go through the NIC and not be subject to firewall rules, though I have also tried to opening up the various ports in UFW (25/587) and no change.
Right now I have the following entries in place:
SMTP Server: localhost
SMTP Server Port: 25
Enable SMTP Authentication: false
Connection Security: None
Skp Server Certificate Verification: true
Enable Security Alerts: true
When I hit the test connection button I get:
Connection unsuccessful: Connection unsuccessful: unable to connect to the SMTP server: context deadline exceeded.
I’ve tried changing each of these settings and no matter what settings I use I can’t get this to connect and I’m pretty much at a loss as to what I’ve got configured wrong.
I do notice in the log entry that even though I am using localhost
that it shows the IP address as 127.0.0.1
.
I would appreciate any suggestions on things to try or additional things to look at.
Here is the full log event:
{
"caller": "web/context.go:115",
"err_where": "testEmail",
"error": "testEmail: Connection unsuccessful: unable to connect to the SMTP server: context deadline exceeded",
"http_code": 500,
"ip_addr": "127.0.0.1",
"level": "error",
"method": "POST",
"msg": "Connection unsuccessful: unable to connect to the SMTP server: context deadline exceeded",
"path": "/api/v4/email/test",
"request_id": "5uxqwoun8jrjzpfwd4gejkuh6a",
"timestamp": "2024-06-09 10:53:29.973 Z",
"user_id": "ky7ugi39538j8g9ubi61y4mdcr"
}