A new SEIR model with distributed infinite delay is derived when the infectivity depends on the age of infection. The basic reproduction number R0, which is a threshold quantity for the stability of equilibria, is calculated. If R0 < 1, then the disease-free equilibrium is globally asymptotically stable and this is the only equilibrium. On the contrary, if R0 > 1, then an endemic equilibrium appears which is locally asymptotically stable. Applying a permanence theorem for infinite dimensional systems, we obtain that the disease is always present when R0 > 1.