We have 3 point charges $Q_1, Q_2$ and $Q_3$ and know electric fields $E_1, E_2$ and $E_3$ ($E_1$ - field due to $Q_1$ etc., $E_1+E_2+E_3 = E$ is electric field in any point of space), and we enclose $Q_1$ and $Q_2$ with some surface, then if we wanted to get $\frac{Q_1+Q_2}{\epsilon_0}$ (right side of Gauss law) what field should sum over surface (left side of Gauss law)? $E_1+E_2$ (field due to enclosed charges) or $E$(the electric field)?
In other words is $E$ in Gauss law ( $ \oint_S\vec E d\vec A = \frac{Q}{\epsilon_0} $) field due to all charges or only ones enclosed in some surface S?