Higher serum IgA and IgG levels were associated with pneumonia, pneumonia-related mortality, and PRISm in middle-aged and older individuals from the general population. Here, CD79A is linked to pneumonia.