Integral inequalities in measure spaces