Error in anvil.users module after setting up my own SMTP server

What I’m trying to do:

Continue to allow users to reset their password via email. After the Anvil domain was added to the Spamhaus blocklist I added my own SMTP-server and use this to send emails. This works fine – except for when users want to reset their passwords.

What I’ve tried and what’s not working:

In my app I am only calling:

anvil.users.login_with_form(allow_cancel=True)

After changing the SMTP settings I suddenly get this error when the server tries to send an email to my users:

anvil.email.SendFailure: 550 5.1.0 Sender is not allowed to send from basiskarten.anvil.app (R2)
(SMTPSendFailedException). You have enabled Custom SMTP for email sending - did you configure it correctly? You may need to provide a valid from_address.

called from anvil-services/anvil/users/init.py, line 48
called from anvil-services/anvil/users/init.py, line 633
called from anvil-services/anvil/users/init.py, line 633
called from Start, line 55

Have you looked at this thread:

1 Like

No, I hadn’t. Thank you so much!

1 Like