However, what happens after retirement and you are no longer contributing to the 401k? Are you able to take payment of dividends or are they still automatically reinvested?
I think the answer to the question you're asking is that the only thing that will change in your 401(k) after leaving or retiring is that you can't add any more money to it.
Most 401(k)s have open-ended fund as investment vehicle options, and I don't think I've ever heard of a dividend-minded person use open-ended funds for living off dividends, if that's what you're angling for. Open-ended mutual funds distribute aggregate dividends and capital gains quarterly (? I think...or maybe it's yearly.) In most cases it's nothing like holding dividend-paying stocks outside of retirement accounts.
And since it's a tax-deferred account, whenever you withdraw, no matter if it's "from dividends" or just redeeming shares, you're paying income tax on the withdrawn amount.
As seen above, there are plenty of details to consider when deciding whether to stick in a 401(k) or roll over to an IRA, but the question you're posing doesn't really seem to me to be an impactful factor.
Unless you're hoping they remain reinvesting, and they would.
That said, I'm not sure how things are these days, but 20-25 years ago the custodians seemed to be pushing the buy-an-annuity-with-all-of-your-401k-at-retirement plan, and if you didn't do your own research you might not understand you have many other options. I figured out the options 20 years ago and haven't really paid attention to financial marketing since then. And you seem to be ahead of the game yourself.