Fix encoding issues

This commit is contained in:
Philipp Heckel 2021-12-28 01:26:20 +01:00
parent 7cfe909644
commit 113053a9e3
3 changed files with 213 additions and 7 deletions

View file

@ -769,7 +769,7 @@ func (s *Server) runSMTPServer() error {
s.smtpServer.Domain = s.config.SMTPServerDomain
s.smtpServer.ReadTimeout = 10 * time.Second
s.smtpServer.WriteTimeout = 10 * time.Second
s.smtpServer.MaxMessageBytes = 2 * s.config.MessageLimit
s.smtpServer.MaxMessageBytes = 1024 * 1024 // Must be much larger than message size (headers, multipart, etc.)
s.smtpServer.MaxRecipients = 1
s.smtpServer.AllowInsecureAuth = true
return s.smtpServer.ListenAndServe()