They are synthesized as large precursors with an N-terminal signal sequence that mediates transport across the inner membrane via the Sec machinery and a translocator domain that mediates the transport of the connected passenger domain across the outer membrane to the bacterial cell surface .