Fixes invalid option of localhost for mail strategy