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.
This sounds like a mail delivery problem rather than specifically a Lemmy problem. The Lemmy server configuration tells your instance how to send email; the default is to use an SMTP server on localhost.
Assuming you have a mail server running, try checking its logs. Maybe Gmail is rejecting mail from your IP address, or maybe your hosting provider or ISP is blocking port 25 by default as an anti-spam measure?