We evaluated the association of serum IgA, IgG, and IgM with pneumonia and lung function in middle-aged and older individuals. Here, CD40LG is linked to pneumonia.