So, I’m trying to set up a self-hosted mastodon instance, and of course this requires an email service. Self hosting one is not an option, because of anti-spam stuff, or so everyone says. The recommendations are to use services like mailgun or postmark, but there’s one thing I don’t really understand:

All these services require verification of an email to be able to send from it. For example, if I want to use noreply[at]mydomain.com with mailgun, I need to click a link sent to that address, which to me feels like a catch-22. How can I receive that email if I don’t have the email service set up yet? Do I have to set the domain up with some private email service (protonmail, tuta…) first?

Any help is appreciated, I’m pretty new at this.

Edit: Alright, so it seems that Mailgun actually doesn’t require this weird confirmation email, just dns records. The first one I tried, SendPulse, did. Postmark requires an email from the domain at signup. Hope someone else can learn from this.

  • cm0002@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    8 months ago

    Idk what mailgun is doing, but many services verify your domain by having you add a specific TXT DNS record or automatic verification by logging into Cloudflare (if that’s where your Domains at) or something

    • byggmax@feddit.nuOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      7 months ago

      Do you have any specific recommendations?

      ETA: A lot of the services I’ve seen even require signing up with a custom domain, meaning I can’t even get past that stage (well, I could use my personal domain I guess, but I’d rather not).

      • cm0002@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        7 months ago

        Are you trying to avoid taking out another domain and use a service that offers free subdomains so it’s like noreply[at]yourinstance.service.com?

        I don’t know of any specific service, but I would just take out another domain, they’re pretty cheap for .com and .net over at Cloudflare

  • poVoq@slrpnk.net
    link
    fedilink
    arrow-up
    2
    ·
    7 months ago

    Some domain registrars have cheap or even free email services, OVH for example gives a single email address for free with each domain, which is very likely to be sufficient for most self-hosting needs.

  • h3ndrik@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    8 months ago

    There are a few all-in-one solutions out there that make selfhosting Email easier. “Mailcow” for example if you’re using docker.

    Maybe your provider also offers you mail.

    I think you can also register an external mail service. For example register an email address with gmail.com and set SMTP_SERVER SMTP_LOGIN and SMTP_PASSWORD etc accordingly. You then need to set SMTP_FROM_ADDRESS to the gmail address. I dont think it’ll work with noreply@mydomain.com if you’re doing it like that.

  • ASK_ME_ABOUT_LOOM@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    I use Mail-in-a-Box on a small VPS. Have been doing so for about 10 years. It takes care of basically everything.

    Last year I subscribed to a small-time email provider, anydomain.net, because I got tired of playing whack-a-mole with services blocking my entire subnet due to spammers on the VPS. All told I probably spend ~US$20 per month to host it.

  • originalucifer@moist.catsweat.com
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    theres the SMTP sending/relay service, and then theres your management of the email domain.

    for example, i use Amazon for my hosting services including SMTP. so when my instance emails outbound, its using amazon’s service as a relay for my domain. my domains are entirely run/manged through other services… mostly Proton.

    so you’d setup a domain with email on an email provider somewhere, then set your instance to use that domain when sending outbound, which could require auth by your local hosting provider, or special provisions at your email service to accept the relayed email.

    youre going to run into issues authorizing the relay needed to send outbound from your instance. amazon was a bitch

  • MangoPenguin@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    if I want to use noreply[at]mydomain.com with mailgun, I need to click a link sent to that address, which to me feels like a catch-22. How can I receive that email if I don’t have the email service set up yet?

    In this case mailgun is a email sending service, so no matter what you’d need another email service to receive email.

  • Victoria@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    I use sendgrid, it only requires some DNS entries for Domain Authentication. Also regarding the catch-22, if you use Cloudflare for DNS, you could use their email routing to forward incoming mails to Gmail