Professional SMTP Server for .NET
High-performance, extensible, and secure SMTP server library. With modern async/await patterns and minimal dependencies.
Powerful Features
Enterprise-level SMTP server features
Security Focused
Complete security with TLS/SSL support, STARTTLS and multiple authentication mechanisms.
High Performance
Efficient async/await patterns, optimized network I/O operations and minimal memory allocations.
Modern API
Easy to use with async/await patterns, event-driven architecture and fluent builder pattern.
Extensible
Full flexibility with plugin architecture, custom filters and message store implementations.
Rate Limiting
Spam protection and resource management with built-in rate limiting.
SMTPUTF8 Support
Full UTF-8 support for international email addresses.
Simple and Powerful API
Set up and run your SMTP server in minutes
using Zetian;
// Create SMTP server
using var server = new SmtpServerBuilder()
.Port(587)
.RequireAuthentication()
.Certificate("cert.pfx", "password")
.MaxMessageSizeMB(25)
.Build();
// When message received
server.MessageReceived += (sender, e) => {
Console.WriteLine($"From: {e.Message.From}");
Console.WriteLine($"Subject: {e.Message.Subject}");
};
await server.StartAsync();
Easy Setup
One-command installation with NuGet
Fluent Builder
Readable and understandable configuration
Event-Driven
Full control with rich event system
Ready to Get Started?
Set up your powerful and reliable SMTP server with Zetian in minutes.