Closed ricardopolo closed 8 years ago
At this point this is not possible and adding support for these actions is not simple either with the current http-based api as making separate http calls for every step (one for auth, one for mail from, one for every text/html node, one for every text/plain, one for message headers etc.) seems like a huge overhead, so I'm thinking about adding some kind of middleware based plugin system like express has.
@andris9 Haraka has a plugin system that may be useful to take a look at - see https://github.com/haraka/Haraka/tree/master/plugins
I am currently using a Haraka @soncodi but Haraka does not allow to modify the HTML message. I have to compose a new message using mailcomposer and send throught Haraka.
I like this project because it natively allows to modify HTML of a message
As an update you should be able to do all this with the newly added (and incomplete) plugin system
Thanks @andris9
Regarding point 4, after the API request I want to change the smtp server for this message.
This solution is multi tenant and we will select the SMTP server of the customer based of this API request.
You can override the envelope.sendingZone
property inside the headers hook to change the routing for a message. Different sending zones can have different destinations. The default is to send to MX of recipient but a zone can be set up to forward messages to a specific MTA instead (see here).
Keep in mind though that even if it might work, it's still an alpha version and as such might change a lot. So I would not suggest writing your production system on top of ZoneMTA. At least not yet.
We currently have a custom solution that users Haraka and Nodemailer.
I am wondering if this new project can fit better @andris9
These are the basic requirements:
Thank you so much Andris!!