The immune system might play an important role in the development of postpartum depression after a stressful pregnancy, new research suggests.