Wrexham set up a play-off semi-final showdown against Luton after completing their season with a convincing 5-1 home victory over Braintree.
The Dragons, already assured of second place in the Blue Square Bet Premier, started strongly and took the lead in the 19th minute through player-manager Andy Morrell, who converted Stephen Wright's right-wing cross.
Adrian Cieslewicz added a second from the centre of the penalty area just before half-time.
Jay Harris hit a post as the hosts went in search of a third but it was Town who reduced the arrears through Ben Wright's 52nd-minute header.
Mathias Pogba soon restored Wrexham's two-goal advantage from distance before Danny Wright and Neil Ashton, from the penalty spot, made it a rout late on.