this post was submitted on 08 Jun 2023
2 points (100.0% liked)

Lemmy Support

4662 readers
22 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

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 ?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 1 year ago (1 children)

after installing with ansible, change the docker-compose.yml file on you server passing the api in the ENV variable:

the postfix section now looks like this

  postfix:
    image: mwader/postfix-relay
    environment:
      - POSTFIX_myhostname=[yourdomain.tld]
      - POSTFIX_inet_protocols=ipv4
      - POSTFIX_smtp_sasl_auth_enable=yes
      - POSTFIX_smtp_sasl_password_maps=static:apikey:[api-key]
      - POSTFIX_smtp_tls_security_level=may
      - POSTFIX_smtp_sasl_security_options=noanonymous
      - POSTFIX_relayhost=smtp.sendgrid.net:587
      - OPENDKIM_DOMAINS=[yourdomain.tld]
    restart: "always"
[โ€“] [email protected] 1 points 1 year ago