change mail conf file mode and disable for gmail