Abstract smtp server settings

addresses #1077