Toilet odours are often a feature of boats, particularly if the heads are only occasionally used.
Replacing both pipes is often sensible if they have been in use for many years, as the discharge pipe does acquire an internal coating from use, which can reduce its performance over time. There are different grades of pipe available and a ‘low odour’ one may be worth using, but it is much more expensive.
As we know the ‘bad odour’ in the heads comes from bacteria in the inlet pipe, and not usually the discharge pipe.
Getting rid of the odour in the inlet pipe needs the bacteria to be killed off. There are (expensive) systems that can inject chemicals into the inlet hose to get rid of the smell as the toilet is used.
Another option that I tried (successfully) this year was to force disinfectant back into the inlet hose. This was done by removing the inlet hose from the rear of the toilet (use a hot air gun to make this task easy) and connecting a length of spare hose to it using a connector piece. (See photo) [envira-gallery id="187123"]
A dilute mixture of Milton (or other disinfectant) was then poured in to the spare hose (keeping it above the toilet level). Then by blowing into the pipe, (take care not to suck!) the mixture is forced back out of the inlet seacock) This process was repeated and the mixture left for a few hours to kill off any bacteria. Thereafter the spare hose and connector were removed and the inlet hose reconnected to the toilet.
So far the result has been 100% effective for me as I use the boat regularly over the summer. However it would be easy to repeat the process during the season if the bad odours return.