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

Forward different domains to different buckets #98

Open
Suncatcher opened this issue Oct 13, 2018 · 4 comments
Open

Forward different domains to different buckets #98

Suncatcher opened this issue Oct 13, 2018 · 4 comments

Comments

@Suncatcher
Copy link

Can we do that?
E.g. messages sent to [email protected] were saved to bucket domain1 and messages sent to [email protected] were saved to domain2.

@jakubboucek
Copy link
Contributor

This request is currently not about this tool. If you want read messages from different bucket, create two different Lambda functions.

@Suncatcher
Copy link
Author

Just thought it's purely a configuration issue, because bucket is specified in default config and so it should be possible to forward messages as well. It would be handy to store different messages in corresponding buckets.

@Suncatcher
Copy link
Author

Still no possibility?

We have bucket in config:

var defaultConfig = {
fromEmail: "[email protected]",
emailBucket: "buckbuck",

Can we make it conditional?

@dragon788
Copy link

You could possibly make a custom index.js to put into your lambda that pulls in the ses-forwarder via require and in your exports.handler add code that examines the function(event, context, callback) contents to determine the source of the event and then conditionally select a config from a list to pass to the LambdaForwarder.handler.

https://github.com/arithmetric/aws-lambda-ses-forwarder/blob/master/example/index.js

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

3 participants