SMTP server framework