I struggled with the same problem, and to confirm OP's concerns, a power supply sold on Walmart.com (T-Power brand) that was advertised to be compatible with DNS-323 did destroy the board on my NAS because +5V was wired where +12V rail should be and vice versa. The seller was very apologetic about it and sent me another one on the house, and coincidentally I had already purchased a replacement second hand DNS-323 so I thought why not, but this time I learned my lesson and to my un-surprise the replacement power supply had the same miswiring issue. I reached out to seller, they apologized again, and asked if I were interested in a yet another replacement. I told them that I were only contacting them to let them know that most likely their complete stock was wired incorrectly. Anyway... To enlighten the few who still possess a D-Link DNS-323 (or a similar model with 4-pin DIN power supply) and is in the market for a power supply, the expectation of the board is: If the back of the NAS and the female 4-pin DIN socket is facing you, the bottom pins are ground pins, and they are joined together on the board, so it doesn't matter which is which. The top left pin is +12V rail, and top right is +5V rail, so you must make sure the power supply you procure matches that very configuration. If you are holding the power supply instead, when the male plug is facing you, the top right pin is +12V rail, and top left is +5V. I hope you find this information helpful.
Edit: Both +5V and +12V rails expect 3 Amps each according to the specs of the original unit.