Configure Remote Service IPs — Complete Step-by-Step Guide

Configure Remote Service IPs — Complete Step-by-Step Guide

This guide explains how to tell your server to treat specific remote mail server or nameserver IP addresses as if they were local. This is useful when you're using external services for DNS or email and want your system to trust those IPs.

When you add IPs using this method, the system saves them into special configuration files and uses them during security checks and validations.


Remote Mail Server IPs

If your domains use external mail servers — such as a spam filter service or third-party mail provider — you can add their IP addresses here. This lets your server treat them like local mail servers.

The system saves these entries in the following file:

/etc/ips.remotemail

To add or edit:

  1. Go to the section labeled Remote Mail Server IPs.
  2. Type the IP address(es) — one per line — into the text box.
  3. Click Save to apply changes.

To remove any IPs, simply delete them from the box and click Save again.


Remote Nameserver IPs

If you use an external DNS provider (e.g., Cloud DNS or another hosted nameserver), add their IP addresses in this section. Doing so allows your server to accept DNS entries from these IPs as if they were from a local nameserver.

These IPs are saved in this file:

/etc/ips.remotedns

To add or edit:

  1. Find the Remote Nameserver IPs section.
  2. Add the IP addresses one per line.
  3. Click Save to confirm.

To remove a nameserver IP, delete the line from the box and save.


Allow Remote Domains

There’s also an optional setting that allows users to create accounts even if their domains point to IPs not listed in the local or remote IP pools.

⚠️ Warning: Enabling this can be risky. If you do allow this option, it’s strongly recommended to also enable “Prevent users from creating certain domains” in your system’s domain restrictions settings.

This combination helps keep your server secure while still allowing flexibility for remote setups.


In Summary

  • Add trusted external mail server IPs under /etc/ips.remotemail
  • Add trusted nameserver IPs under /etc/ips.remotedns
  • Always click Save after changes
  • Be cautious when enabling the remote domain override setting

By following these steps, you ensure your server properly recognizes and cooperates with external DNS and mail systems.

We are a shared license provider; if you need a cPanel shared license at a cheap price, you can buy it from us.

case studies

See More Case Studies