only activate email logging if set in config