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!

Cpanel / Exim update deleted /etc/exim.conf

Discussion in 'General Discussion' started by FreedomNet, Oct 11, 2004.

  1. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Better than that edit antirelayd, replace 30 with 0 and all users would be forced to use SMTP authentication.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. damainman

    damainman Well-Known Member

    Joined:
    Nov 13, 2003
    Messages:
    515
    Likes Received:
    0
    Trophy Points:
    166
    If I have my update settings to stable, and run /scripts/upcp --force .. it will just reinstall the stable, or upgrade to the latest build?

    thanks in advance.
     
  3. chirpy

    chirpy Well-Known Member Verifed Vendor

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Reinstall the stable (if you were on stable earlier). This ensures that even if some files were currupted they are restored.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Oh yes i forgot that part :) We can disable antirelayd altogether (until cpanel makes it a configurable option)

    Chirpy: any ideas if the next cpanel/ exim update will start antirelayd back ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. chirpy

    chirpy Well-Known Member Verifed Vendor

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I don't think it does change the file permissions on the file, so it shouldn't - However, I haven't tested in myself ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    :) I am on it rite now, will post results.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Did exactly as you said:

    Code:
    chmod -x /usr/sbin/antirelayd
    service antirelayd stop
    chkconfig antirelayd off
    
    On restarting exim, i get an error:
    Code:
    Shutting down clamd:                                       [FAILED]
    Shutting down exim:                                        [  OK  ]
    Shutting down antirelayd:                                  [FAILED]
    Shutting down spamd:                                       [  OK  ]
    Starting clamd:                                            [  OK  ]
    Starting exim:                                             [  OK  ]
    Starting exim-smtps:                                       [  OK  ]
    Starting antirelayd: execvp: Permission denied
                                                               [FAILED]
    Starting spamd:                                            [  OK  ]
    
    Now updating exim to latest.

    Code:
    /scripts/exim4 --latest
    
    ls -la /usr/sbin/antirelayd
    -rwxr-xr-x    1 root     root         6979 Oct  8 01:04 /usr/sbin/antirelayd
    
    The executable permissions are back and so is antirelayd back in action.

    Code:
    ps aux | grep antirelayd
    root     25504  0.0  1.1  2840 1408 ttyp1    S    18:43   0:00 antirelayd
    
    Exim restart now doesn't give any errors:

    Code:
    Shutting down clamd:                                       [  OK  ]
    Shutting down exim:                                        [  OK  ]
    Shutting down antirelayd:                                  [  OK  ]
    Shutting down spamd:                                       [  OK  ]
    Starting clamd:                                            [  OK  ]
    Starting exim:                                             [  OK  ]
    Starting exim-smtps:                                       [  OK  ]
    Starting antirelayd:                                       [  OK  ]
    Starting spamd:                                            [  OK  ]
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. chirpy

    chirpy Well-Known Member Verifed Vendor

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Bugger ;)

    OK, how about this then <rolls up sleeves>

    Create /scripts/postexim4install with:
    Code:
    #!/bin/sh
    chmod -x /usr/sbin/antirelayd
    service antirelayd stop
    chkconfig antirelayd off
    then:

    chmod 700 /scripts/postexim4install

    That should stop it :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. chirpy

    chirpy Well-Known Member Verifed Vendor

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Of course, it would probably be best to submit an enhancement bugzilla request to be able to turn off antirelayd within WHM > Tweak Settings ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    hahaha that is a nice one chirpy, real nice. I actually thought about doing the same thing with antirelayd instead i thought of still having antirelayd there and replacing 60*30 with 60*0 :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Yes that would be the best solution actually. I am not sure if i did submit it earlier when first i came across this antirelayd.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    I didn't submit it, but someone else surely did :

    http://bugzilla.cpanel.net/show_bug.cgi?id=526

    :D
     
    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