Drop Typo Mail Address

Hi, recently I was implementing KumoMTA on my company to deliver email to our customers. But, I notice some of our customer mispell their email, like alice@gamil.com, gmail.con, and so on and it get stuck on queues when I check it with kcli tools. Any idea how to drop the email immediately instead it get stuck on queues? Thanks

You can write some creative code using the public suffix list

Keep in mind that while it’s easy for a human to look at an email address and see a typo, it’s not so easy to write code that easily detects a typo, outside of working against a predefined list. That’s why MTAs are not typically the place to do this work, it’s more a case of “garbage in, garbage out”.

Yup. And gmall.com might actually be legit

it quite hard to tell people, and most of our customers uses gmail and no private mail afaik. even it was an private mail, it basically an government official email, which most of their lazy it guys use google workspace or office 365

for gmall i think there is no record of it in our database

maybe i’ll try to find mispelled domain in the apps database later using regex to fix it

maybe i’ll tell dude from planning and development dept. who create the programs backend to dismiss the misspelled email before being sent out to the email endpoint

thanks for the help btw

There are a number of providers for an API that will help validate email addresses.

yeah i’ve said that before on board meeting. but seems like the auditor and regulator in my country don’t like it lol. I works in banking industry which this kind of handling customers data into 3rd party is… kinda no no since customer data protection act was approved by congress

Also, one more question. Any idea how to do domain whitelisting on the KumoMTA? like, only allow to send email into specific domain and reject any email other than whitelisted domain

As in only allow them to inject mail destined for gmail.com ?

Yeah, i want to do it on employee mail server, since I want to convert all of the postfix mta into KumoMTA. And I kinda stuck on this question how to do it

Can you elaborate more? What will the server do, where will the mail come from, where is it going?

The MTA will reject any email with destination domain that not in our whitelist. Like john doe want to sent email into alice@yahoo.co.id. Since yahoo.co.id was not on our whitelist, it will rejected out.

That sounds like a lot of domains, how do you define such a large list of domains that you can send to? What happens when one of your users wants to send to an unknown but legitimate domain?

Actually it was auditor question to me. The currently whitelisted domain in my company is relatively small, only about 20 domains only allowed to sent out by employee

Ok back to my question: where does this server theoretically sit in your infrastructure, where are the messages coming in from, where are the messages being relayed to?

No, only outgoing email actually being blocked out. Wait, i’ll try to access my company iredadmin panel to show more prespective