I (and many others) do this:

https://blog.nawaz.org/posts/2018/Sep/solving-my-email-probl...

(Not answering your question, but referring to the approach).