diff --git a/src/Minimail/Program.cs b/src/Minimail/Program.cs index 905a756..9433f1d 100644 --- a/src/Minimail/Program.cs +++ b/src/Minimail/Program.cs @@ -81,7 +81,7 @@ public static async Task Main(string[] args) .Certificate(X509Certificate2.CreateFromPemFile(pathsOptions.CertFullChain, pathsOptions.CertPrivateKey))) .Build(); - var serviceProvider = new ServiceProvider(); + var serviceProvider = new SmtpServer.ComponentModel.ServiceProvider(); serviceProvider.Add(new MiniMailboxFilter(_whitelist, logger)); serviceProvider.Add(new MiniMessageStore(pathsOptions, logger));