I'm assuming with a 5-speed hub you have a bike with horizontal dropouts. You should be able to push the chain at least 1/2" up and down with your fingers. Looser is better than tighter.
Both wheels of the derailleur move together horizontally so there's no difference in chainline with or without the derailleur.