flexible mail config, sane defaults