I was thinking about hosting my own email (own email server) instead of using Gmail. But then I realized I could never host my email on a server where I'm also hosting Wordpress. That is because I would always fear that someone might have compromised my server; the same could be said about everything else I have on that server, but email is of particular importance given that someone could reset the passwords for most of my online accounts using my email.
The solution would be to have the email encrypted on my server using my public key, so that it would only be readable using my own private key. But if this encryption occurs on the server it's almost just as useless because someone could compromise the server and get to the emails before they get encrypted.
So the second solution that came to my mind was that the email could be encrypted before it reaches the server. For example, having something similar to a DNS MX record containing my public key which would make the transmitting server encrypt the messages using my own public key. So bottom line, is there a way to have the emails encrypted before they reach the server? If not, is there something like this in the works (because I'd be interested to follow their progress)?