Mailgun integration and cleanup