[OEM-168] Move divert config to mailer component and simplify code