The microbiota of bulk tank raw milk is known to be closely related to that of microbial niches of the on-farm environment. Preserved forage types are partof this ecosystem and previous studies have shown variations in their microbial ecology. However, little is known of the microbiota of forage ration combinations and the transfer rates of associated species to milk. We identified raw milk bacteria that may originate from forage rations encompassing either hay (H) or grass/legume silage uninoculated (GL) as the only forage type, or a combination of GL and corn silage uninoculated (GLC), or grass/legume and corn silage both inoculated (GLICI). Forage and milk samples collected in the fall and spring from 24 dairy farms were analyzed using 16S rRNA gene high-throughput sequencing following a treatment with propidium monoazide to account for viable cells. Three community types separating H, GL, and GLICI forage were identified. While the H community was co-dominated by Enterobacteriaceae, Microbacteriaceae, Beijerinckiaceae, and Sphingomonadaceae, the GL and GLICI communities showed high proportions of Leuconostocaceae and Acetobacteraceae, respectively. Most of the GLC and GLICI rations were similar, suggesting that in the mixed forage rations involving grass/legume and corn silage, the addition of inoculant in one or both types of feed does not considerably change the microbiota. Raw milk samples were not grouped in the same way, as the GLC milk was phylogenetically different from that of GLICI across sampling periods. Raw milk communities, including the GLICI group for which cows were fed inoculated forage, were differentiated by Enterobacteriaceae and other Proteobacteria, instead of by lactic acid bacteria. Of the 113 amplicon sequence variants (ASVs) shared between forage rations and corresponding raw milk, bacterial transfer rates were estimated at 18 to 31%. Silage-based forage rations, particularly those including corn, share more ASVs with raw milk produced on corresponding farms compared to that observed in the milk from cows fed hay. These results show the relevance of cow forage rations as sources of bacteria that contaminate milk and serve to advance our knowledge of on-farm raw milk contamination.