SMTP Only Server Setup

We want to setup smtp relay server KumoMTA behind the proxy. We were able to start setup KumoMTA & its proxy. And also able to send email using single static domain. But we want that to be dynamic. There will 5-10 domain for sending email using our server. So i need guidanace reagrding below things.

  1. Do we need setup dynamic listner domain using sqlite. As we are only using our server for sending smtp.
  2. Any tutorial or blogs or which will help guide which will help us setup and also we can make sure we are on right path.
  3. When we setup proxy, our programming application will connect with Proxy or SMTP server?

PS: We have basic experience setting up email server and we are new to kumoMTA

Depending on your use case, you typically add more sending domains by configuring DKIM for the domain, then setting bounce and FBL handling in the listener_domain config.

KumoMTA uses the proxy, you connect to KumoMTA to inject messages.

@yearning-hyena Thank you.

Just confirming.

  1. i don’t require multiple listing domain to send email using multiple domains
  2. i need to connect KumoMTA http/smtp protocol to send mail, not proxy. Proxy will be used as gateway for outbound mail.

Am i right?

For number one, you don’t have to listen on every domain you send from, but unless you know how you’re configuring it things can go poorly for deliverability.

And yes, you inject mail to KumoMTA over HTTP or SMTP, KumoMTA delivers via the proxy over HTTP or SMTP.

If you have more than one KumoMTA you can use a proxy to load balance, but you don’t need to configure that in KumoMTA.

I will be modifing this function as setup listener domain.

kumo.on(‘get_listener_domain’, function(domain, listener, conn_meta)
if domain == ‘example.com’ then
return kumo.make_listener_domain {
relay_to = true,
log_oob = true,
log_fbl = true,
}
end
end)

in above funciton instead of domain == ‘example.com’ i will write one function if that check if domain existing in sqlite or note.

That setup will work for relay. But i am not sure that i will setup dynamic domain for obb & fbl. instead i will give my my domain like obb.maindomain.com and fbl.maindomain.com

You may want to use the helper.