Outbound SMTP

Moving @red1 question here:

I used to work with PowerMTA, but I’ve now switched to KumoMTA. I’m trying to configure outbound SMTP access for my application. I added this code to my init.lua file:

kumo.start_esmtp_listener {
listen = ‘0.0.0.0:25’,
smtp_server = {
username = os.getenv(“KUMOMTA_SMTP_USERNAME”),
password = os.getenv(“KUMOMTA_SMTP_PASSWORD”),
– Other SMTP server configuration options
},
– … other KumoMTA configuration options
}

but unfortunately I still can’t connect.

Hey there @yearning-hyena, thanks for posting. Please read the “Troubleshooting” and “How to Ask for Help” buttons below. If you would like a 1:1 support session from the KumoMTA team, details are at the “Book a Support Session” button below.

@astounding-quail if your goal is to have KumoMTA use AUTH credentials when sending messages to a remote server, use Delivering Messages Using SMTP Auth - KumoMTA Docs

If your goal is to have incoming hosts use AUTH, then look at Checking Inbound SMTP Authentication - KumoMTA Docs

I have no idea where you got the smtp_server = {} syntax from, it’s not part of KumoMTA.

@astounding-quail Were you able to resolve this? Using SMTP Auth both inbound and outbound should be fairly well documented, but if you can’t find it let us know so we can check the docs again.