Based upon the connection of a simulation program for combined sewer systems with the IAWQ-Activated Sludge Model No.1 the new simulation tool GEMINI was developed, which allows the calculation of sewer and sewage treatment plant as a unit. Some obtained results are presented in an example. They suggest, that for every treatment plant a rate of inflow is determinable, which leads to a minimum of total emissions out of sewer and treatment plant. The optimal value of sewage treatment plant inflow in the example is distinctly greater than the design flow rate fixed in German design rules. So it is recognizable that a rigid flow management for sewer and treatment plant does not always fulfil the aim of minimization of total emissions.