As the only nutritional source for newborn piglets, porcine colostrum and milk contain critical nutritional and immunological components including carbohydrates, lipids, and proteins (immunoglobulins). However, porcine milk composition is more complex than these three components. Recently, scientists identified additional and novel components of sow colostrum and milk, including exosomes, oligosaccharides, and bacteria, which possibly act as biological signals and modulate the intestinal environment and immune status in piglets and later in life. Evaluation of these nutritional and non-nutritional components in porcine milk will help better understand the nutritional and biological function of porcine colostrum and milk. Furthermore, some important functions of the porcine mammary gland have been reported in recent published literature. These preliminary studies hypothesized how glucose, amino acids, and fatty acids are transported from maternal blood to the porcine mammary gland for milk synthesis. Therefore, we summarized recent reports on sow milk composition and porcine mammary gland function in this review, with particular emphasis on macronutrient transfer and synthesis mechanisms, which might offer a possible approach for regulation of milk synthesis in the future.Electronic supplementary materialThe online version of this article (10.1186/s40104-018-0291-8) contains supplementary material, which is available to authorized users.