Outside the living envelope: in the attic, in a garage not beneath living space, or outdoors on the pipe run. Never in the basement or a lived-in room, because everything downstream of the fan is under pressure.
More detail
The rule comes from the ANSI/AARST mitigation standards that Indiana's NRPP and NRSB certification requirement binds installers to, and the logic is worth knowing as a homeowner: suction-side pipe leaks pull air in, but pressure-side leaks push concentrated soil gas out, so the pressurized section must live where a leak vents harmlessly. The same standards shape the discharge, which terminates above the roof, clear of windows and openings, so the exhausted gas dilutes into open air instead of re-entering. On central Indiana houses the practical choice is usually attic versus exterior wall. An attic run hides the pipe and shelters the fan from winter; an exterior run is simpler and cheaper but belongs on a wall away from bedrooms and patios. Walk the proposed route before install day; it is the one aesthetic decision in the whole project. See why fans get noisy.