An Indiana man was sentenced Tuesday for a serial campaign of harassment against his ex-wife that lasted years and included mailing a dead rat to her home in Florida, authorities said.