Mack-Cali Realty Corp. has sold two triple-net-leased office properties in Hamilton, in a pair of deals announced Tuesday by Newmark Knight Frank.