Yeah, I think this is a very worthwhile project, and is pretty much
exactly the use case I see which would almost justify adding SMTP
support...
Sadly, there is no way to make this work with TLS - the SMTP protocol
mandates that the STARTTLS command happen before any command which
could allow PageKite to route the data.
I'm afraid the best solution for your use case may be to use a
traditional in-the-cloud SMTP server and encrypted POP or IMAP to
fetch the mail (I like fetchmail). Note that many providers forbid
outgoing direct SMTP and many spam blocking solutions reject mail
coming from "consumer" IP addresses. So in practice, spam prevention
policies mean you need an in-the-cloud SMTP relay to send mail anyway
and at that point you may as well just use the same infrastructure for
incoming mail as well.
(This logic is why I keep deciding against implementing SMTP support
myself in PageKite, it fails the cost-benefit analysis due to "how
mail works in the real world" and limitations on what is technically
possible).
On a semi-related note, have you seen my other project, Mailpile? It's
still at very early stages, but making good progress and is one of my
main projects for the summer. The goal is to create a self-hosted
GMail replacement, leveraging PageKite and the
pagekite.net
infrastructure to make installation as simple as possible (which means
I may end up providing the SMTP relay services mentioned above, if I
figure out a reasonable business model to cover the costs). It might
be a good fit for your project, if it reaches maturity within the
right timeframe:
https://github.com/pagekite/Mailpile
On Thu, May 23, 2013 at 1:19 PM, Christoph Witzany