Maximum message size 32MB
This commit is contained in:
parent
fd88386978
commit
def0bd8164
@ -175,7 +175,7 @@ func main() {
|
|||||||
localServer := smtp.NewServer(localBackend)
|
localServer := smtp.NewServer(localBackend)
|
||||||
localServer.Addr = *smtpaddr
|
localServer.Addr = *smtpaddr
|
||||||
localServer.Domain = hex.EncodeToString(pk)
|
localServer.Domain = hex.EncodeToString(pk)
|
||||||
localServer.MaxMessageBytes = 1024 * 1024
|
localServer.MaxMessageBytes = 1024 * 1024 * 32
|
||||||
localServer.MaxRecipients = 50
|
localServer.MaxRecipients = 50
|
||||||
localServer.AllowInsecureAuth = true
|
localServer.AllowInsecureAuth = true
|
||||||
localServer.EnableAuth(sasl.Login, func(conn *smtp.Conn) sasl.Server {
|
localServer.EnableAuth(sasl.Login, func(conn *smtp.Conn) sasl.Server {
|
||||||
@ -203,7 +203,7 @@ func main() {
|
|||||||
|
|
||||||
overlayServer := smtp.NewServer(overlayBackend)
|
overlayServer := smtp.NewServer(overlayBackend)
|
||||||
overlayServer.Domain = hex.EncodeToString(pk)
|
overlayServer.Domain = hex.EncodeToString(pk)
|
||||||
overlayServer.MaxMessageBytes = 1024 * 1024
|
overlayServer.MaxMessageBytes = 1024 * 1024 * 32
|
||||||
overlayServer.MaxRecipients = 50
|
overlayServer.MaxRecipients = 50
|
||||||
overlayServer.AuthDisabled = true
|
overlayServer.AuthDisabled = true
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user