I used the mailbox provided by Gmail for quite a long time, and then I wanted to link my domain to it. MX registered, the mail began to go (two weeks later). I also had to leave the old address, but the problem was that the spam sent to arbitrary addresses of my domain safely reached my account. Those. I need to receive mail from login@gmail.com and login@example.com, and I received letters sent to random@example.com.
Help gmail'a somehow silent about such a situation (or wipe my eyes). I solved the problem by writing this filter:
to: (* @ example.com AND !login@example.com) → throw it away
')
For non-programmers: If the letter is in my domain, but not at login@example.com → throw it away.
The solution is good in that it concerns only my domain (i.e., you can fasten it as you like) and is expandable to infinity (... AND !another@example.com).
It is interesting in the whole story that all three operators (*,!, AND) are not
documented , but they work fine.
UPD: It turned out that the problem is solved by ticking at:
www.google.com/a/cpanel/example.com/EmailSettings