I have issues using postfix on my digitalocean droplet (they block the smtp port). Is it possible to setup using SendGrid for the email verification and notifications ?

  • majorswitcher@lemmy.oneOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    thanks! got it working now. In SendGrip generated an api key, at - POSTFIX_smtp_sasl_password_maps=static:smtp_username:smtp_password filled in apikey:[theapikey] and relayhost=smtp.sendgrid.net:587

    also add a verified From address in SendGrid, which is added in your lemmy.hjson email.smtp_from_address

    • worldcitizen101@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Thank you for sharing!

      I’m trying to figure this out and I’m stuck at creating the file to save the API key. Where did you put the file in the lemmy-ansible setup?

      Now you need to specify your credentials (use apikey as username and an API Key as password) in the separate file /etc/postfix/sasl_passwd (you’ll likely need to create it):