I've used oil pressure tube and it works great.

This tube is stiff enough to to be pushed into the door post when the door shuts, but yet soft enough to bend enough and without resistance when the door open: