A California technology company is going to be out tens of thousands of dollars for providing a New York City official with two luxury-box passes to a Yankee game in 2009, The Post has learned.

Sources said that Dyn Tek Services has agreed to pay for an independent monitor to make sure that it never dispenses any other such favors to a city employee. Typical fees are in the six-figure range.

But the company didn’t have much choice after one of its executives invited a senior official of the Human Resources Administration to its Yankee Stadium luxury suite for a 2009 game against the Boston Red Sox.

The official, Sanford Cohen, was slapped with a $3,000 fine last week by the Conflicts of Interest Board and retired from his $152,000 job last January amid an investigation.

City employees aren’t allowed to accept gifts worth more than $50 from vendors.

If Dyn Tek fails to comply with city rules, the city has warned it can yank all of its contracts.