Comment Similar thing happened to me (Score 4, Interesting) 675
I got fired from a company I worked for for two years because my boss found some emails I'd sent to a friend of mine (who worked at one of our suppliers) calling him a complete asshole.
This obviously put me in a bit of a tricky situation with references, but luckily the general manager of the company was a good guy and knew that the guy in question indeed was an asshole, so agreed to give me a reference.
Your case is even more clear-cut than mine, in that you have obviously done nothing wrong. Given that some people in your company are obviously acting in a completely childish manner, can you find a sympathetic individual - who's not your boss but is someone high up enough - who can give you a reference?
As a final point, most companies shouldn't give good/bad references for exactly these reasons - they can be used to distort the truth to benefit the company in question. A lot of places just give a standard statement confirming that the employee worked in the specified role between the specified dates - this should be standard.