Irgm1 coordinately regulates autoimmunity and host defense at select mucosal surfaces.