I use O365 Business (Or whatever the heck they call it now) for my email, so for SMTP on all my devices at home, I use an O365 account with an app password, sending as a distro-group so it can have a custom name

This works, but I don’t like how every device/server has O365 creds in it. I am thinking I should setup an SMTP Relay at home locally, which sends to O365 (Or Sendgrid, etc etc) and then SMTP on local services can just point to that local address

Is this the right way to go about it? What is the current best software do it? I’ve only ever had experience using IIS to do this, and of course I don’t want to be running windows!

7 points

Interactive (i.e. end-users) Clients should be using OAuth instead of app passwords. This will allow your users to use their own Office365 credentials for SMTP.

For servers and non-interactive clients (e.g. copiers/printers/toasters/coffee makers) I would suggest something along the lines here: https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365#compare-the-options

permalink
report
reply
5 points

I use https://github.com/YoRyan/mailrise

Mailrise is apprise under the hood. It’s an SMTP server that converts all the emails it receives to push messages depending on the To address in the email.

permalink
report
reply
2 points

I think what you’re doing is fine, in fact, it’s one of the Microsoft recommended methods of doing it.

permalink
report
reply
2 points

I’ve started using SMTP2GO for all my notification. Up to 1000 email/month it’s free. So I don’t have to rely on Google/Microsoft account/changes that they do every once in a while.

permalink
report
reply
1 point

I’ve been thinking about using that as an SMTP relay as well (Because my email server doesn’t have reverse DNS). Would you recommend it?

permalink
report
parent
reply
1 point

Definitely! I’ve been using without any problem the free version.

permalink
report
parent
reply
1 point

I haven’t found any reason online for not using it either, so I guess I’ll just use that. Free account should be more than enough for me too, no way am I going to send more than 1000 emails a month.

permalink
report
parent
reply

In my case I have postfix running as an open relay inside my network that then relays to Amazon SES. But I have my own domain.

I imagine doing something similar where you relay to o365 might work.

permalink
report
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 4.4K

    Monthly active users

  • 3.8K

    Posts

  • 81K

    Comments