postalsys / mailauth

Command line utility and a Node.js library for email authentication
Other
127 stars 10 forks source link

Cloudflare workers support #32

Closed schack closed 1 year ago

schack commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to use mailauth in a Cloudflare Worker, it's currently not possible

Describe the solution you'd like mailauth uses XMLHttpRequest, this is not supported by Cloudflare workers, they use fetch instead

andris9 commented 1 year ago

Getting mailauth to work with Cloudflare workers would be interesting indeed. Unfortunately, you'd have to rewrite a large part of the module because mailauth uses DNS, etc., which requires access to TCP and UDP. As far as I know, this is not possible with Cloudflare workers.