mmm why not give OpenX a try?
i dont like their interface but it's a pretty good system
they also have a stand alone version
it's used widely

it's pretty much got all the options you could ask for that are popular with mainstream ad agencies

or what Lee said