Electrical pump for breast milk with an electric motor a pump driven by the electric motor at least one suction cup a suction line connecting the suction cup to the pump a breast milk outlet communicating with the suction cup a venting line communicating with the suction cup an electrically activated venting valve in the venting line means for switching the electric motor on and off means for adjusting the speed of the electric motor an electronic control system which is connected to the means for switching on and off to the means for adjusting the speed to the electric motor and to the electrically activated venting valve and which is configured to switch the electric motor on and off depending on an activation of the means for switching on and off to allow the electric motor to run at a speed according to the setting of the means for adjusting the speed and to operate the electric motor continuously and/or to operate the electric motor in cycles in which the electric motor is alternately switched on and switched off wherein the electronic control system opens the venting valve when the electric motor is switched off and closes the venting valve when the electric motor is switched on.