Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

纯内网无DNS服务器的情况下,如何部署? #243

Open
nonamexz opened this issue Jan 11, 2025 · 3 comments
Open

纯内网无DNS服务器的情况下,如何部署? #243

nonamexz opened this issue Jan 11, 2025 · 3 comments

Comments

@nonamexz
Copy link

   某政府项目,全内网驻场开发,项目团队拥有的服务器资源有限,不能方便额外部署DNS服务,虽有内网DNS服务,但申请不到非生产业务的DNS解析。
   为方便项目内部人员沟通,想私有部署一套邮件服务,虽然smtp,pop,mail等域名都是通过修改/etc/hosts实现了,但MX解析使终没解决,大家有什么好的方案吗?
@Jinnrry
Copy link
Owner

Jinnrry commented Jan 12, 2025

https://github.com/Jinnrry/PMail/blob/master/server/utils/send/send.go#L47

这个地方,把consts.TEST_DOMAIN改成你的域名试试

@Jinnrry
Copy link
Owner

Jinnrry commented Jan 12, 2025

或者把下面net.LookupMX这一行查询dns mx记录的代码你写死

@nonamexz
Copy link
Author

谢谢。非常感谢您的回复。
我在忙完这几天后,会搭一个Go环境来尝试编译一个版本试试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants