We study weighted porous media equations on Euclidean domains either with Dirichlet or with Neumann homogeneous boundary conditions. Existence of weak solutions and uniqueness in a suitable class is studied in detail. Moreover, smoothing effects are discussed for short time, in connection with the validity of a Poincaré inequality in appropriate weighted Sobolev spaces, and the long-time asymptotic behaviour is also studied. In fact, we prove full equivalence between certain smoothing effects and suitable weighted Poincaré-type inequalities. Particular emphasis is given to the Neumann problem, which is much less studied in the literature, as well as to the case of R^N when the corresponding weight makes its measure finite, so tha...