{"action":"created","issue":{"url":"https://api.github.com/repos/mailcow/mailcow-dockerized/issues/1700","repository_url":"https://api.github.com/repos/mailcow/mailcow-dockerized","labels_url":"https://api.github.com/repos/mailcow/mailcow-dockerized/issues/1700/labels{/name}","comments_url":"https://api.github.com/repos/mailcow/mailcow-dockerized/issues/1700/comments","events_url":"https://api.github.com/repos/mailcow/mailcow-dockerized/issues/1700/events","html_url":"https://github.com/mailcow/mailcow-dockerized/issues/1700","id":352655536,"node_id":"MDU6SXNzdWUzNTI2NTU1MzY=","number":1700,"title":"Autodiscover + reverse proxy forwards internal address instead of hostname","user":{"login":"lug-gh","id":24546639,"node_id":"MDQ6VXNlcjI0NTQ2NjM5","avatar_url":"https://avatars3.githubusercontent.com/u/24546639?v=4","gravatar_id":"","url":"https://api.github.com/users/lug-gh","html_url":"https://github.com/lug-gh","followers_url":"https://api.github.com/users/lug-gh/followers","following_url":"https://api.github.com/users/lug-gh/following{/other_user}","gists_url":"https://api.github.com/users/lug-gh/gists{/gist_id}","starred_url":"https://api.github.com/users/lug-gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lug-gh/subscriptions","organizations_url":"https://api.github.com/users/lug-gh/orgs","repos_url":"https://api.github.com/users/lug-gh/repos","events_url":"https://api.github.com/users/lug-gh/events{/privacy}","received_events_url":"https://api.github.com/users/lug-gh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-21T18:21:18Z","updated_at":"2018-08-22T16:14:17Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm using mailcow dockerized behind reverse proxy like the manual shows here: https://mailcow.github.io/mailcow-dockerized-docs/firststeps-rp/ (nginx)\r\n\r\nBut when I add an account to my outlook, it connects to the internal IP of the mailserver.\r\nWhy is that?\r\n\r\n```\r\nC:\\Users\\lug>nslookup\r\nStandardserver:  dns.example.local\r\nAddress:  10.10.10.111\r\n\r\n> mail.example.org\r\nServer:  dns.example.local\r\nAddress:  10.10.10.111\r\n\r\nNicht autorisierende Antwort:\r\nName:    node.example.org\r\nAddress:  193.30.xxx.xxx\r\nAliases:  mail.example.org\r\n```\r\n\r\nnginx:\r\n```\r\nserver {\r\n        listen 443;\r\n        ssl on;\r\n        ssl_certificate         /etc/letsencrypt/live/example.org/fullchain.pem;\r\n        ssl_certificate_key     /etc/letsencrypt/live/example.org/privkey.pem;\r\n        server_name             mail.example.org\r\n                                autodiscover.example.org\r\n                                autoconfig.example.org;\r\n\r\n        location / {\r\n                proxy_pass https://10.10.10.102/;\r\n                proxy_set_header Host $http_host;\r\n                proxy_set_header X-Real-IP $remote_addr;\r\n                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n                proxy_set_header X-Forwarded-Proto $scheme;\r\n                client_max_body_size 100m;\r\n        }\r\n}\r\n```\r\n\r\ndns:\r\n```\r\nnode.example.org.\t86400\tIN\tA\t193.30.xxx.xxx\r\nmail.example.org.\t120\tIN\tCNAME\tnode.example.org.\r\nautodiscover.example.org.\t86400\tIN\tCNAME\tmail.example.org.\r\nautoconfig.example.org.\t86400\tIN\tCNAME\tmail.example.org.\r\n_autodiscover._tcp.autodiscover.example.org.\t120\tIN\tSRV\t1\t\t\t1\t443\tmail.example.org.\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/24546639/44421004-ba4f7800-a57f-11e8-910d-c7a2b82d22e2.png)\r\n\r\n\r\nI hope somebody knows what's going on there."},"comment":{"url":"https://api.github.com/repos/mailcow/mailcow-dockerized/issues/comments/415089720","html_url":"https://github.com/mailcow/mailcow-dockerized/issues/1700#issuecomment-415089720","issue_url":"https://api.github.com/repos/mailcow/mailcow-dockerized/issues/1700","id":415089720,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTA4OTcyMA==","user":{"login":"lug-gh","id":24546639,"node_id":"MDQ6VXNlcjI0NTQ2NjM5","avatar_url":"https://avatars3.githubusercontent.com/u/24546639?v=4","gravatar_id":"","url":"https://api.github.com/users/lug-gh","html_url":"https://github.com/lug-gh","followers_url":"https://api.github.com/users/lug-gh/followers","following_url":"https://api.github.com/users/lug-gh/following{/other_user}","gists_url":"https://api.github.com/users/lug-gh/gists{/gist_id}","starred_url":"https://api.github.com/users/lug-gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lug-gh/subscriptions","organizations_url":"https://api.github.com/users/lug-gh/orgs","repos_url":"https://api.github.com/users/lug-gh/repos","events_url":"https://api.github.com/users/lug-gh/events{/privacy}","received_events_url":"https://api.github.com/users/lug-gh/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T16:14:17Z","updated_at":"2018-08-22T16:14:17Z","author_association":"NONE","body":"What exactly is wrong about it?"}}
{"actor":{"display_login":"lug-gh"}}