This script below can be used to enable a Cloudflare Email Worker to forward inbound emails to your self-hosted Odoo instance. It might work for hosted Odoo as well - who knows?
You must set the following Variables to talk to your instance:
ODOO_DATABASE(eg the Odoo database)ODOO_USERID(for the user - try2)ODOO_PASSWORD(the password for that user ID)ODOO_HOST(the host egcrm.example.com)ODOO_PORT(the port, hopefully443)ODOO_PROTOCOL(the protocol, hopefullyhttps)
Once you have set it all up - point the "catch-all" for the domain at this email worker.
Good luck!



