Hi,
My webmail works on another server with different ip, and when users try to reach mail.mydomain.com through browser it returns 404 (normal behavior i believe because my A & MX records pointed to proxmox mgw server).Hi,
which traffic should be redirected? The one coming to port 80 with target IP of the PVE host or all the traffic on port 80 inbound on a specific interface? You can achieve this by setting up port forwarding rules via the firewall, if your webmail service has static IP and is running on the PVE host/cluster.
If on the other hand the webmail is running on an outside server and you want to redirect by domain name, you could setup a simple nginx or apache2 service with redirect rules.
Okay, but would it not make more sense to update the DNS records in that case, instead of redirecting?My webmail works on another server with different ip, and when users try to reach mail.mydomain.com through browser it returns 404 (normal behavior i believe because my A & MX records pointed to proxmox mgw server).
On the other hand all users were so get used to use mail.mydomain.com as webmail so what i want to do is to forward http://mail.mydomain.com to my webmail server's url if it is possible of course.
If i change the MX & A record as point to zimbra instead of proxmox, then would proxmox stop working, sorry i'm a rookie and trying to learn.Okay, but would it not make more sense to update the DNS records in that case, instead of redirecting?
`mail.mydomain.com` and `mydomain.com` are not the same, so you could have a DNS record for `mail.mydomain.com` pointing to your webmail service (which I hope is redirecting from HTTP to HTTPS on the webmail site) and another subdomain, e.g. `pve.mydomain.com` pointing to your PVE host and maybe a CNAME record `mydomain.com` pointing to `pve.mydomain.com` if its what you want. Then your PVE host would be reachable via `mydomain.org` and/or `pve.mydomain.org`, while the webmail service can be reached via `mail.mydomain.com`If i change the MX & A record as point to zimbra instead of proxmox, then would proxmox stop working, sorry i'm a rookie and trying to learn.
How i must create dns records to point mail.mydomain.com as webmail?
i just realised that i started my topin in the wrong section, terribly sorry, could you please move my topic to right section`mail.mydomain.com` and `mydomain.com` are not the same, so you could have a DNS record for `mail.mydomain.com` pointing to your webmail service (which I hope is redirecting from HTTP to HTTPS on the webmail site) and another subdomain, e.g. `pve.mydomain.com` pointing to your PVE host and maybe a CNAME record `mydomain.com` pointing to `pve.mydomain.com` if its what you want. Then your PVE host would be reachable via `mydomain.org` and/or `pve.mydomain.org`, while the webmail service can be reached via `mail.mydomain.com`
How to setup these DNS records will depend on your DNS provider.
Or am I getting something wrong here and you are referring to a PMG setup, not a PVE setup?
what you could do in that case is install nginx and set it up to redirect http/s traffic to the new domain. Something like here https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections#nginx but with the different domains of course. I would directly redirect to https in that case.i just realised that i started my topin in the wrong section, terribly sorry, could you please move my topic to right section
here is my system details(i made up the ip adresses due to security reasons;
--Proxmox Mail Gateway 7.1-1 (176.66.65.66)
--Zimbra 8.8.15 (177.77.75.77)
on the DNS side
MX : mail.mydomain.com ->176.66.65.66
A : mail.mydomain.com->176.66.65.66
smtp.mydomain.com->177.77.75.77
imap.mydomain.com->177.77.75.77
pop.mydomain.com->177.77.75.77
when you try to navigate mail.mydomain.com PMG handling the request and returns 404 because there are no service responses requests from port 80 on PMG, what i want to do is forward mail.mydomain.com:80 requests to webmail.mydomain.com:80.
Sorry for wrong section again.