add: basic smtpd configuration options

This commit is contained in:
Rubin Raithel
2022-01-10 20:39:55 +01:00
parent 6afc87968c
commit 016ef762fb
3 changed files with 82 additions and 1 deletions

View File

@@ -320,6 +320,12 @@ func main() {
server := &smtpd.Server{
Hostname: *hostName,
WelcomeMessage: *welcomeMsg,
ReadTimeout: readTimeout,
WriteTimeout: writeTimeout,
DataTimeout: dataTimeout,
MaxConnections: *maxConnections,
MaxMessageSize: *maxMessageSize,
MaxRecipients: *maxRecipients,
ConnectionChecker: connectionChecker,
SenderChecker: senderChecker,
RecipientChecker: recipientChecker,