You should replace your main water line when there are signs of corrosion. Usually, houses with an age of over 60 years should be checked annually for corrosion.