We generalize the correspondence between Dirichlet series with finitely many poles that satisfy a functional equation and automorphic integrals with log-polynomial sum period functions. In particular, we extend the correspondence to hold for Dirichlet series with finitely many essential singularities. We also study Dirichlet series with infinitely many poles in a vertical strip. For Hecke groups with lambda >= 2 and some weights, we prove a similar correspondence for these Dirichlet series. For this case, we provide a way to estimate automorphic integrals with infinite log-polynomial periods by automorphic integrals with finite log-polynomial periods.