I’ve been trying to get some friends signed up on my lemmy instance.

The issue is, so far nobody seems to be receiving the signup/verification emails. I am getting the admin user-signup emails, but those are sent to contact@<instance-domain>. I created 2 test users, one with a instance-domain address, and one to a gmail. The instance-domain address was there within a minute, but the gmail one has yet to arrive.

Instance details:

OS: Ubuntu 22.04

Lemmy: Lemmy-Ansible install, on 0.18.0, modified to removed network settings per https://github.com/LemmyNet/lemmy-ansible/pull/102

Any ideas why this might be happening?

edit: looked through the logs for the postfix container, turns out gmail requires SPF or DKIM to be setup for a domain or it will reject emails. I’ll probably just end up using a free external STMP service.

This definitely seems like something that should be mentioned in the docs for those (like me) that are not familiar with the inner workings of email servers.

  • Matthew@lemmy.piperservers.net
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I agree with @terribleplan@lemmy.nrd.li that the inclusion of a postfix SMTP container and using that in the example configs is probably doing more harm than good.

    You shouldn’t need the Postfix container at all unless you want to manually set that up and know what you’re doing. You configure your SMTP settings in the config.hjson file as outlined in the example defaults.hjson file. I’m using a third-party SMTP provider to avoid any deliverability issues with sending emails directly from my server’s IP address. Just ensure you configured your DNS correctly (DKIM, etc.), punch in the info, and it should work.