In case of a CustomMailer (mailerBuiler.withCustomMailer(...)), the SMTP server config is not used at all and so the mailer should never failing on missing server config. Moreover, there should be an entry builder method for Custom Mailer so users are not forced to start with a dummy SMTP server.