Go to Admin > Workflows> Email notifications > Template > Agent reply template and then remove the ticket URL placeholder. In this way, your customers will not get the link to your portal URL.