changes mail settings to be used by different host dependent on environment