mhale / smtpd

An SMTP server package written in Go, in the style of the built-in HTTP server.
The Unlicense
404 stars 92 forks source link

Ability to set maximum recipients #39

Closed axllent closed 10 months ago

axllent commented 11 months ago

Hi there.

Currently there is a maximum of 100 recipients hardcoded. Whilst I understand that this should be a default, the RFC states that an SMTP server must handle a minimum of 100 recipients, not the maximum. I use your awesome package in Mailpit (email / SMTP testing tool) and it would be extremely helpful if your module could allow a custom max to be set.

Thank you.

mhale commented 10 months ago

Hi, I've added a MaxRecipients field to the Server structure. Does that suit your needs?

axllent commented 10 months ago

That is awesome @mhale, thank you. I've tested with the master branch and can confirm this works exactly as expected :+1: Would you mind please tagging a new version with this so I can implement it downstream (so I can revert to tagged releases)?

Thanks again!

mhale commented 10 months ago

I've pushed a tag named v0.8.1.

axllent commented 10 months ago

That is fantastic, thanks so much @mhale - exactly what I needed! :rocket: Works like a charm...