AhR by microbiota tryptophan metabolism alleviates Escherichia coli-induced mastitis in mice. Here, AHR is linked to mastitis.