Custom email: Allow local network for SMTP host on self-managed
From this comment on the feedback issue for custom email:
Thank you very much for this new feature. Unfortunately I think you do not allow to use local networks as far as I understand. My problem now is, that we have a split horizon DNS setup where hosts inside of the local deployment infrastructure resolve to local networks instead of public ones. (e.g.
myMailServer.my.domain
) Is it somehow possible that I can turn off this restriction or allow local networks?I can not work around this, as the mail server even if I reach it with its public IP will resolve and answer from its "internal" one.
May you have some other idea how to handle this?
Solution path
From #416637 (comment 1689015878)
Unfortunately I think you do not allow to use local networks as far as I understand.
Yes, that's correct. We explicitly disallow local networks and localhost (IP addresses are allowed and the address needs to be resolvable). But I see your argument here.
Is it somehow possible that I can turn off this restriction or allow local networks?
We could potentially allow local addresses for self-managed instances. We'd still need to disable that for GitLab SaaS. I'll check that in the next few days and get back to you. I'm thinking about whether this would be an issue for self-managed administrators
🤔 Maybe it's not because users need to be at least a maintainer in a project to configure a custom email.