This can be stated in active form. Alternate translation: "until the other shepherds gather their flocks" (See: [[rc://en/ta/man/translate/figs-activepassive]])
Here "mouth" is way of referring to an opening. Alternate translation: "from the well" or "from the opening of the well" (See: [[rc://en/ta/man/translate/figs-idiom]])