Gonadal steroid hormone secretion during the juvenile period depends on host-specific microbiota and contributes to the development of odor preference.