Is this configuration correct ?
That is correct as I understood it. BTW, I’d rather call xmpp.my-company.com a hostname where you run Openfire, instead of an XMPP Server Domain Name because the later implies cm.my-company.com, i.e. the “Server Name”.
If I have 2 XMPP servers, can I set them up for Server 2 Server connections using domain names (xmpp1.my-company.com and xmpp2.my-company.com) since the server names match ?
I’m assuming that this setup has nothing to do with the cm.my-company.com above.
An S2S setup requires different the server names. xmpp1 and xmpp2 do not match, so they qualify for an S2S setup. Also, if you may be wondering, S2S has nothing to do with a connection manager in that sense.
If you’re looking for multiple servers having the same server name, then it is not possible with the open source version of Openfire. This (so called) clustering setup is (or would be, I’m not sure) possible with the Enterprise version of Openfire.