updates config for mail delivery