Overflow valve with thread connection