Skip to main content

VPS: Is there any way to route just one site through its dedicated IP

Comments

10 comments

  • quietFinn

    Did you read this?
    https://support.cpanel.net/hc/en-us/articles/360049187673-How-to-send-email-from-a-dedicated-IP-address

    "The above steps will affect all accounts using dedicated IPs on the server.

    Sending email from a dedicated IP address means that you will need to modify the PTR record for the dedicated IP address to match the account's domain name."

    If you want that only one site is sending using it's dedicated IP you must use /ets/mailips & /etc/mailhelo 

    0
  • bcon

    Thanks but I have tried this and whilst it works, it affects ALL the domains on the VPS and creates error messages for those that share an IP. I need this option but for just one domain on one dedicated IP

    0
  • quietFinn

    I edited my reply and answered your question.

    0
  • bcon

    Thanks, I have tried this and on the shared IPS Im getting the error

    "The error for all the other websites under Email deliverability is:
    The only PTR value for this IP address must be "xyz". This is the name that this server sends with SMTPs HELO command to send outgoing email.
    1 unexpected PTR value exists for this IP address."

    My host and I cannot fix this error if 4 websites are sharing a dedicated IP, we have tried.

    0
  • quietFinn

    You can't share a dedicated IP in a cPanel server, unless the IP is assigned to a reseller account.

     

    0
  • cPRex Jurassic Moderator

    Correct - you can't have multiple domains on a dedicated IP address in cPanel or else you'll run into odd behavior like that.

    0
  • bcon

    Wish there was the option to just have one domain on a dedicated ip route its email through its dedicated ip

    0
  • cPRex Jurassic Moderator

    There is - you just need to add additional lines to the configuration:

    https://docs.cpanel.net/knowledge-base/email/how-to-configure-the-exim-outgoing-ip-address/#the-mailhelo-file

    Under that mailips section you can see how multiple domains can be configured.  Is that not working for you?

    0
  • bcon

    Thanks cPRex I havent tried this, not sure how to do this even with the link to instructions, any assistance would be great on how I do this 

    one domain on dedicated ip

    all other domains through main ip

    Thanks

     

    0
  • quietFinn

    in /etc/mailips
    domainwithdedicatedip: dedictedip
    *: mainip

    in /etc/mailhelo
    domainwithdedicetdip: rDNSofDedicatedIP
    *: rDNSofMainIP

    in WHM -> Service Configuration -> Exim Configuration Manager -> Domains and IPs
    Send mail from the account’s IP address = Off
    Reference /etc/mailhelo for custom outgoing SMTP HELO = On
    Reference /etc/mailips for custom IP on outgoing SMTP connections = On

     

     

    1

Please sign in to leave a comment.