postfix issues, possible to use sendgrid?
postfix issues, possible to use sendgrid?
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 ?
10 comments
you should be able to use any mail gateway that supports smtp. one way to do it is to configure postfix to use sendgrid as relayhost - https://docs.sendgrid.com/for-developers/sending-email/postfix
3 0 Replyi've installed via Ansible. do you know where I can find the postfix config file ?
2 0 Replyyou can define it as environment variables in https://github.com/LemmyNet/lemmy-ansible/blob/main/templates/docker-compose.yml i.e mine contains these lines:
postfix: image: mwader/postfix-relay environment: - POSTFIX_myhostname=group.lt - POSTFIX_inet_protocols=ipv4 - POSTFIX_smtp_sasl_auth_enable=yes - POSTFIX_smtp_sasl_password_maps=static:smtp_username:smtp_password - POSTFIX_smtp_tls_security_level=may - POSTFIX_smtp_sasl_security_options=noanonymous - POSTFIX_relayhost=sendgridsmtpserver:serverport - OPENDKIM_DOMAINS=group.lt restart: "always"
2 0 Reply
Test
1 0 Replytest
1 0 Reply
10 comments
Scroll to top