The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

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

  1. hoststage

    hoststage Member

    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:
    817
    Likes Received:
    22
    Trophy Points:
    18
    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]
     
    #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:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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.
     
Loading...

Share This Page