The agricultural machine such as seed drill (1) has a filling device with a filling conduit having a separation point. A closure is provided for closing a feed opening connected with the conduit. A control unit is provided for controlling automatic closing or opening of closure based on the position of the far-away pivoted spacers.