Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with postfix #545

Closed
AmsellemJoseph opened this issue Apr 19, 2023 · 4 comments · Fixed by #550
Closed

problem with postfix #545

AmsellemJoseph opened this issue Apr 19, 2023 · 4 comments · Fixed by #550

Comments

@AmsellemJoseph
Copy link

Hey,
I am deploying dyrectorio with docker-compose, everything is going well, but when registering I do not receive an email.

I have put an address in the environment variables.

FROM_EMAIL=my@mail.com
SMTP_URI=smtp://172.17.0.1:25/?skip_ssl_verify=true&legacy_ssl=false&smtp_ssl_enabled=false&disable_starttls=true

but in the logs, I repeatedly receive an error from kratos:
msg=Unable to send email using SMTP connection. audience=application error=map[message:gomail: could not send email 1: 554 5.7.1 mymail@gmail.com: Recipient address rejected: Access denied] message_from=noreply@dyrector.io service_name=Ory Kratos service_version=v0 .11.0 smtp_server=172.17.0.1:25 smtp_ssl_enabled=false

I use postfix, do you have any idea?
Thanks a lot!!

@ghost
Copy link

ghost commented Apr 20, 2023

Hi!

The Recipient address rejected: Access denied error can be caused by a lot of things. As the error indicates it's possible you cannot send to that address but there can be other issues as well.

Is your postfix routing other kind of mails correctly? Do you try to send these mails through the public internet? How does your mailing setup look like?

@AmsellemJoseph
Copy link
Author

Hey @c3ppc3pp , I'm using a third party SMTP provider

The issue here is I'm configuring Dyrector.io to use a specific SEND FROM email address, but it's still using the hardcoded noreply@dyrector.io which of course is REJECTED by my SMTP provider that expect me to send from an allowed address on my domain

So my question is why is the setting above not working? Is there another / newer way to declare the SEND FROM email address to be used instead of the hardcoded noreply@dyrector.io?

thx for your help.

@axlroden
Copy link

axlroden commented Apr 24, 2023

same issue.. After I used the mailslurper to do initial team, I noticed new emails send out was the correct email ..

@m8vago
Copy link
Contributor

m8vago commented Apr 24, 2023

Hi Guys!

Thank you for reporting the error.
@nandor-magyar found the problem, and he will open a pull request soon with the fix.

@nandor-magyar nandor-magyar linked a pull request Apr 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants