add mail configs and install mail plugin