I got miles from ams to antwerp on the train but they weren't credited automatically. I had to send in a miles claim + tickets.
As for ams - rtm, I seriously doubt you'd get a mile for that. Anyway how can you book a journey with an ams-rtm rail segment?