How do you setup SMTP

For self hosted I recommend using AWS SES, it’s by far the most economical from what I’ve seen for top tier reputable services and works well too.