the mail gateway acts as a proxy only, so you cannot authenticate user.
and yes, if you do manual do changes via CLI (e.g. postfix), these settings are overwritten. if you want custom settings you need to modify our "templates", but all these will be overwritten again after uploading a service pack or hotfix.