Immunomodulation in microbial immunity and autoimmunity