<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pmg.proxmox.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Change_FQDN</id>
	<title>Change FQDN - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pmg.proxmox.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Change_FQDN"/>
	<link rel="alternate" type="text/html" href="https://pmg.proxmox.com/mediawiki/index.php?title=Change_FQDN&amp;action=history"/>
	<updated>2026-04-15T23:57:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pmg.proxmox.com/mediawiki/index.php?title=Change_FQDN&amp;diff=44&amp;oldid=prev</id>
		<title>Martin: page created</title>
		<link rel="alternate" type="text/html" href="https://pmg.proxmox.com/mediawiki/index.php?title=Change_FQDN&amp;diff=44&amp;oldid=prev"/>
		<updated>2020-06-03T11:19:46Z</updated>

		<summary type="html">&lt;p&gt;page created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Changing the fully qualified domain name (FQDN) or IP address of a Proxmox Mail Gateway installation is basically done like on any other GNU/Linux system.&lt;br /&gt;
However, there are a few config files on which Proxmox Mail Gateway relies to get its configuration right.&lt;br /&gt;
&lt;br /&gt;
In most situations, you will need to make changes to your domain records to reflect the change of hostname and/or IP address since email delivery relies on correct DNS records.&lt;br /&gt;
&lt;br /&gt;
This short article will walk you through all the necessary places in which you might need to adapt the configuration.&lt;br /&gt;
&lt;br /&gt;
For the remainder we assume that:&lt;br /&gt;
* we want to change the FQDN of our installation to &amp;lt;code&amp;gt;pmgchanged.proxmox.com&amp;lt;/code&amp;gt; &lt;br /&gt;
* we want to change the IP address and network to &amp;lt;code&amp;gt;192.0.2.72/24&amp;lt;/code&amp;gt;&lt;br /&gt;
* the Gateway in our network is &amp;lt;code&amp;gt;192.0.2.1&amp;lt;/code&amp;gt;&lt;br /&gt;
* the DNS server in our network is &amp;lt;code&amp;gt;192.0.2.53&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Adapting the FQDN on the Proxmox Mail Gateway ==&lt;br /&gt;
This needs to happen in 3 places:&lt;br /&gt;
* &amp;lt;code&amp;gt;/etc/hostname&amp;lt;/code&amp;gt; - the short hostname (&amp;lt;code&amp;gt;pmgchanged&amp;lt;/code&amp;gt;, the part before the first &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;,) needs to be entered there.&lt;br /&gt;
* &amp;lt;code&amp;gt;/etc/hosts&amp;lt;/code&amp;gt; - there needs to be an entry with the main IP pointing to the short hostname and FQDN:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
127.0.0.1 localhost.localdomain localhost&lt;br /&gt;
192.0.2.72 pmgchanged.proxmox.com pmgchanged&lt;br /&gt;
# leave remaining /etc/hosts untouched&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/etc/resolv.conf&amp;lt;/code&amp;gt; - needs to contain the domain name part as &amp;lt;code&amp;gt;search&amp;lt;/code&amp;gt; - This can also be accomplished in the GUI (on the main Configuration Menu entry):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
search proxmox.com&lt;br /&gt;
nameserver 192.0.2.53&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Changing the IP configuration  ==&lt;br /&gt;
&lt;br /&gt;
Adapt the &amp;lt;code&amp;gt;/etc/network/interfaces&amp;lt;/code&amp;gt; file with the new IP&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
# comments&lt;br /&gt;
auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
auto ens18&lt;br /&gt;
iface ens18 inet static&lt;br /&gt;
        address 192.0.2.72/20&lt;br /&gt;
        gateway 192.0.2.1&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
== Consideration for clustered setups ==&lt;br /&gt;
If you run a Proxmox Mail Gateway cluster, you will need to adapt &amp;lt;code&amp;gt;/etc/pmg/cluster.conf&amp;lt;/code&amp;gt; with the changed IP addresses and hostnames and make sure that passwordless SSH authentication is still working between the nodes in the cluster.&lt;br /&gt;
&lt;br /&gt;
Additionally check all other nodes&amp;#039; &amp;lt;code&amp;gt;/etc/hosts&amp;lt;/code&amp;gt; files to make sure that the old IP address and FQDN are replaced there as well.&lt;br /&gt;
&lt;br /&gt;
== Updating the IP and or FQDN on all relevant internal systems ==&lt;br /&gt;
Change the internal systems which use the Proxmox Mail Gateway to the new IP or FQDN. This can be the mailserver which relays mails via the Proxmox Mail Gateway.&lt;br /&gt;
&lt;br /&gt;
== Changing all relevant DNS records ==&lt;br /&gt;
Email relies on DNS records for its operation.&lt;br /&gt;
* If you change the FQDN of your Proxmox Mail Gateway installation, make sure to update the MX records of all domains for which it relays email to the new FQDN.&lt;br /&gt;
* Add or Update the A record of the FQDN to point to the current IP address of your Proxmox Mail Gateway&lt;br /&gt;
* Update the reverse Pointer (PTR record) of the IP address to point to the new FQDN of your Proxmox Mail Gateway&lt;/div&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
</feed>