using mailer_port parameter if defined

Check if mailer_port is defined in parameters.yml and uses it for fallback.