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

Add support for smtp_forward plugin #20

Closed
kayrus opened this issue Feb 11, 2022 · 5 comments
Closed

Add support for smtp_forward plugin #20

kayrus opened this issue Feb 11, 2022 · 5 comments

Comments

@kayrus
Copy link

kayrus commented Feb 11, 2022

https://haraka.github.io/plugins/queue/smtp_forward/ config allows to specify an SMTP server with credentials to forward emails to.
It can also forward emails to different SMTP servers according to the recipient/sender domains.

In case when the email cannot be delivered right away, the credentials and the backend hostname info must be stored in a queue along with the message body, so the next attempt would use the corresponding user:pass@host:587 backend server.

@thenitai
Copy link
Member

Hi,

You wrote a description of what that plugin does. However, I don't get what this has to do with this plugin? Is there a question in there that I've missed?

@kayrus
Copy link
Author

kayrus commented Feb 12, 2022

@thenitai I haven't noticed that it saves SMTP host and credentials for further tries https://github.com/Helpmonks/haraka-plugin-mongodb/blob/master/index.js#L326-L357 :\ did I miss something?

@kayrus
Copy link
Author

kayrus commented Feb 12, 2022

I also didn't find the logic that retries to send an email from mongodb.

@thenitai
Copy link
Member

You are mistaken about what this plugin does. Please read the description.

@kayrus
Copy link
Author

kayrus commented Feb 16, 2022

I think there is a general confusion about the terms haraka uses. For me a queue is a special storage haraka uses to store emails for further retry. Same as postfix or exim. Currently this behavior corresponds only to the local disk queue (queue directory).
It looks like all queue plugins don't follow this approach and queuing means just to deliver emails to external storage with no other actions from haraka side.

See similar references I found with this confusion:

@thenitai could you please explain the use case for your config? Why do you store emails in mongo if haraka doesn't process them afterwards? Do you use a separate application to access emails from mongo?

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

No branches or pull requests

2 participants