Our sales are selling stuff without consulting the technical team. I am about to lose my temper - this is a difficult situation because the CEO seems to be siding with the sales. We already had meetings and agreed on quick fixes as emergencies because the contracts specified these functionalities that don't exist. We have legal accountability for contracts signed by us, but the sales people do it again and the CEO does not punish them. 

Another problem is that I have current tasks at queue and these developments are not my primary function. All this makes my primary tasks take longer. The CTO and CEO are aware of this and they are ok with delaying my primary tasks, but it frustrates me that the sales does not consult me or the CTO. My role is dev lead but there's no current PM for this product so the sales does need to consult me.

Is adjusting my milestones the only thing I can do?