Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 34
  1. #1
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default mailhelo and mailips being cleared by upcp ?

    Every now and then we find the files /etc/mailhelo and /etc/mailips zeroed out from the information that was there.

    Our upcp is set to manual so there should be no real upcp updating unless we trigger it from WHM or the system console.

    Last night at the normal upcp run time we see that /etc/mailhelo and /etc/mailips zeroed out again.

    We need those files left intact because they provide exim (or whatever reads it) to act as a different IP and different domain name as the normal IP has a "bad reputation" as per IronPort stupid reputation scheme.

    How can be tweak the system so it does not zero out those files. It does it without warning and we cannot send to anyone using the IronPort reputation crap until we go back and copy good mailhelo and mailips over the zeroed out ones and restart exim.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  2. #2
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    What cPanel/WHM version?

    In the interim until cPanel responds you could try to chattr +i those files.

  3. #3
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    Quote Originally Posted by sawbuck View Post
    What cPanel/WHM version?

    In the interim until cPanel responds you could try to chattr +i those files.
    cPanel 11.25.0-C42048 - WHM 11.25.0 - X 3.9
    CENTOS 5.2 i686 standard

    thanks for the chattr idea, but I really want to be sure I am doing the right thing. If something needs to blow out mailhelo/mailips or if it doesnt like what it sees for some reason it would be good to know what else I should do.

    I dont want to open a trouble ticket right away as this may be a problem that has occured for others.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  4. #4
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Latest Current is 42213.

  5. #5
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    If you wish to customize these files you will need to enable the following options in the Exim Configuration Editor:

    Send HELO based on the domain name in /etc/mailhelo (*: HELONAME can be added to the file to change the default helo name)


    Send outgoing mail from the IP that matches the domain name in /etc/mailips (*: IP can be added to the file to change the main outgoing interface)
    -Nick
    cPanel Inc.

    Need support? Submit a request here. Complimentary support is available to all license holders regardless of where you purchased your license.
    Need a complimentary support account? Create one here.

  6. #6
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    Quote Originally Posted by cpanelnick View Post
    If you wish to customize these files you will need to enable the following options in the Exim Configuration Editor:

    Send HELO based on the domain name in /etc/mailhelo (*: HELONAME can be added to the file to change the default helo name)


    Send outgoing mail from the IP that matches the domain name in /etc/mailips (*: IP can be added to the file to change the main outgoing interface)
    We did that months ago. Its just that every now and then they are zeroed out. When we went from 11.24.x to 11.25.x it did it and now last night it did it without any manual updating.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  7. #7
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Does running /scripts/updateuserdomains (this is the only thing in cpanel that touches the file) cause the files to be zeroed out?
    -Nick
    cPanel Inc.

    Need support? Submit a request here. Complimentary support is available to all license holders regardless of where you purchased your license.
    Need a complimentary support account? Create one here.

  8. #8
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    Quote Originally Posted by cpanelnick View Post
    Does running /scripts/updateuserdomains (this is the only thing in cpanel that touches the file) cause the files to be zeroed out?
    Just ran it now (boy, I hope it doesnt do anything else bad) but it did not affect the two files. The contents remained the same and date stamp is the same.

    I also just restarted EXIM after checking the file sizes just to be sure it wouldnt clear it out later (like when you sometimes delete a log but it doesnt update until you restart the associated app) and it didnt change the files date stamp or size.

    Last night when they zeroed out it the time stamp was the same minute that upcp ran (even though its set for manual) so its something quick.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    129

    Default

    I've just verified this. upcp just wiped mailips on all servers even though they had both the options checked in Exim configuration (EHLO and the other one).

    We now have to do a chattr +i but please look into this as we've already had customers threatening to cancel because their emails started going out the main IP again....
    Arvixe - Freedom of the web at your fingertips

  10. #10
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by Arvand View Post
    I've just verified this. upcp just wiped mailips on all servers even though they had both the options checked in Exim configuration (EHLO and the other one).

    We now have to do a chattr +i but please look into this as we've already had customers threatening to cancel because their emails started going out the main IP again....
    Was the upcp ran with force, or without force?

    Please let us know the output from the following commands, to confirm OS, cPanel version, and relevant Exim configuration options:
    Code:
    # grep -H '' /etc/*release /usr/local/cpanel/version
    # grep "mailhelo\|mailips" /etc/exim.conf.localopts
    # stat /var/cpanel/custom_mailhelo /var/cpanel/custom_mailips
    Last edited by cPanelDon; 12-23-2009 at 10:42 PM. Reason: Added "stat" command for additional diagnostic information

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    129

    Default

    Automatic updates. Not being done with --force.

    root@tiger [~]# grep -H '' /etc/*release /usr/local/cpanel/version
    /etc/redhat-release:CentOS release 5.4 (Final)
    /usr/local/cpanel/version:11.25.0-RELEASE_42399
    root@tiger [~]# grep "mailhelo\|mailips" /etc/exim.conf.localopts
    custom_mailhelo=1
    custom_mailips=1
    per_domain_mailhelo=0
    per_domain_mailips=0
    root@tiger [~]# stat /var/cpanel/custom_mailhelo /var/cpanel/custom_mailips
    File: `/var/cpanel/custom_mailhelo'
    Size: 0 Blocks: 0 IO Block: 4096 regular empty file
    Device: 802h/2050d Inode: 2910168 Links: 1
    Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
    Access: 2009-12-22 17:13:26.000000000 -0800
    Modify: 2009-12-22 17:13:26.000000000 -0800
    Change: 2009-12-23 00:45:12.000000000 -0800
    File: `/var/cpanel/custom_mailips'
    Size: 0 Blocks: 0 IO Block: 4096 regular empty file
    Device: 802h/2050d Inode: 2909270 Links: 1
    Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
    Access: 2009-12-22 17:13:26.000000000 -0800
    Modify: 2009-12-22 17:13:26.000000000 -0800
    Change: 2009-12-23 00:45:08.000000000 -0800
    Arvixe - Freedom of the web at your fingertips

  12. #12
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    Mine zeroed out again this morning. Updates are set to manual and we did not do any manual upates. It
    shows the zeroing at the time upcp is set to run. It did not zero out for two days and then it did it this morning.

    Don't know if you want mine too. Manual updates, nothing with force, all done in WHM, not console.

    root@slserver1 [~]# grep -H '' /etc/*release /usr/local/cpanel/version
    /etc/redhat-release:CentOS release 5.2 (Final)
    /usr/local/cpanel/version:11.25.0-CURRENT_42048
    root@slserver1 [~]# grep "mailhelo\|mailips" /etc/exim.conf.localopts
    custom_mailhelo=1
    custom_mailips=1
    per_domain_mailhelo=0
    per_domain_mailips=0
    root@slserver1 [~]# stat /var/cpanel/custom_mailhelo /var/cpanel/custom_mailips
    File: `/var/cpanel/custom_mailhelo'
    Size: 0 Blocks: 0 IO Block: 4096 regular empty file
    Device: 802h/2050d Inode: 361299 Links: 1
    Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
    Access: 2009-12-21 08:45:51.000000000 -0600
    Modify: 2009-12-21 08:45:51.000000000 -0600
    Change: 2009-12-21 16:45:01.000000000 -0600
    File: `/var/cpanel/custom_mailips'
    Size: 0 Blocks: 0 IO Block: 4096 regular empty file
    Device: 802h/2050d Inode: 361300 Links: 1
    Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
    Access: 2009-12-21 08:45:51.000000000 -0600
    Modify: 2009-12-21 08:45:51.000000000 -0600
    Change: 2009-12-21 16:45:01.000000000 -0600
    root@slserver1 [~]#
    Last edited by nyjimbo; 12-24-2009 at 08:50 AM.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  13. #13
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by Arvand View Post
    Automatic updates. Not being done with --force.

    root@tiger [~]# grep -H '' /etc/*release /usr/local/cpanel/version
    /etc/redhat-release:CentOS release 5.4 (Final)
    /usr/local/cpanel/version:11.25.0-RELEASE_42399
    ...
    Quote Originally Posted by nyjimbo View Post
    Mine zeroed out again this morning. Updates are set to manual and we did not do any manual upates. It
    shows the zeroing at the time upcp is set to run. It did not zero out for two days and then it did it this morning.

    Don't know if you want mine too. Manual updates, nothing with force, all done in WHM, not console.

    root@slserver1 [~]# grep -H '' /etc/*release /usr/local/cpanel/version
    /etc/redhat-release:CentOS release 5.2 (Final)
    /usr/local/cpanel/version:11.25.0-CURRENT_42048
    ...
    Thank you both for the details; this is very much appreciated.

    If the issue is persistently recurring please consider submitting a support request so that we can take a closer look at the affected system. When available, please PM me referencing this thread and your new ticket ID number so I may follow-up internally.

  14. #14
    Member
    Join Date
    Jan 2006
    Posts
    20

    Default /etc/mailips gets emptied

    I use the option:

    Send outgoing mail from the ip that matches the domain name in /etc/mailips (*: IP can be added to the file to change the main outgoing interface)

    However I notice that after the cPanel 11.25 update, the /etc/mailips file gets emptied everyday when the auto upgrade runs. Is there anything to be done to prevent this from happenning?

    cPanel 11.25.0-R42399

  15. #15
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Might look at this thread - nothing definitive so far.

    mailhelo and mailips being cleared by upcp ?

Similar Threads & Tags
Similar threads

  1. Formats for /etc/mailhelo, mailips, etc.
    By nyjimbo in forum E-mail Discussions
    Replies: 8
    Last Post: 05-03-2010, 03:36 PM
  2. domain not added to mailhelo and mailips
    By Cristi4n in forum E-mail Discussions
    Replies: 0
    Last Post: 12-12-2008, 03:01 AM
  3. Manually modifiying /etc/mailhelo
    By aag73 in forum E-mail Discussions
    Replies: 0
    Last Post: 06-18-2008, 10:49 AM
  4. how to use /etc/mailips ?
    By d_t in forum E-mail Discussions
    Replies: 3
    Last Post: 05-06-2008, 06:54 PM
  5. When are the log files cleared from the server
    By myweb in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 06-02-2006, 11:23 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube