knadh / listmonk

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
https://listmonk.app
GNU Affero General Public License v3.0
15.08k stars 1.38k forks source link

SMTP settings for local self-hosted email server #1977

Closed benstaf closed 2 months ago

benstaf commented 2 months ago

Hi, I want to use a local self-hosted email server as a mail delivery platform, hosted on the same server as Listmonk (for example, a VPS server with Postal+Listmonk), instead of using an external SMTP relay such as Sendgrid or AWS SES.

How should I configure the SMTP settings in this case?

Screenshot_2024-08-06-15-06-39-604_com android chrome-edit

knadh commented 2 months ago

Rest of the fields can be left as-is.

benstaf commented 2 months ago

It doesn't work, I am getting the error: dial tcp 127.0.0.1:25: connect: connection refused

Screenshot_2024-08-17-22-15-18-816_com android chrome-edit

If I connect to Postal from an external Listmonk server, it works normally

I am investigating this issue (maybe Docker Network)

benstaf commented 2 months ago

172.17.0.1 works for me. I found that on Stackoverflow