Higher average herd milk somatic cell count (>200,000 cells/mL), not having an effective fly control strategy, contact with lactating cows prior to calving and moderate to severe udder edema prior to calving increased the odds of intramammary infections caused by contagious major pathogens.