MAQ-MS arrives VM around 1:40 am,
you can alight at VM and board night service bus(will charge you double the actual fare 18rupees) which can be boarded near approach road of overbridge, walkable distance from station.
Else you can wait there to board the Villupuram-Pondicherry passenger at 6:35am, fare rupees 6.
train and bus journey takes one hour