Enterogenic Stenotrophomonas maltophilia migrates to the mammary gland to induce mastitis by activating the calcium-ROS-AMPK-mTOR-autophagy pathway. Here, MTOR is linked to mastitis.