Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Is it possible to lock the file : /etc/mailips

Discussion in 'E-mail Discussion' started by hoststage, Feb 21, 2014.

  1. hoststage

    hoststage Member
    PartnerNOC

    Joined:
    Oct 12, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hello,

    We are using a custom IP for our mail server that we have defined in /etc/mailips.

    * : CUSTOM IP

    The problem is that each time we move a website to a dedicated IP and or possibly to each cPanel updates, the files is generated again ?

    How can we safely override any changes to happen to this file ?
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    830
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    I know it's not idea, but we just chattr the file to keep it from being regenerated.

    [Removed - setting /etc/mailips to immutable can result in several problems, including failed account creation attempts]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 vanessa, Feb 21, 2014
    Last edited by a moderator: Nov 18, 2016
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,303
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please ensure you disable "Send mail from account’s dedicated IP address" under "Domains and IPs" in "WHM Home » Service Configuration » Exim Configuration Manager". Per documentation, disabling this option will allow you to manually manage the files. If this option is selected, /usr/local/cpanel/scripts/updateuserdomains will be used to automatically populate /etc/mailhelo and /etc/mailips, overriding your changes.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice