Fix outbound redirection and extract to custom/outbound file