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.

How to add custom perl to the exim.pl or exim.pl.local?

Discussion in 'General Discussion' started by WebOnce, Sep 29, 2005.

  1. WebOnce

    WebOnce Well-Known Member

    Joined:
    May 20, 2004
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Lansing, MI, USA
    I am looking to extend some options available through Exim processing, and would like to know if anyone knows a safe way to add extra code to Exim's perl scripts and not have it tossed with an upcp?

    Thanks in advance! :)
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The only way to to use your own exim configuration call to load up a perl script in the exim configuration editor and be sure to load up cPanel's /etc/exim.pl within that.

    That is: in the first exim configuration editor textarea add:

    perl_startup = do '/path/to/your/script.pl'

    And in /path/to/your/script.pl have the follow at the end:

    do "/etc/exim.pl";
    1;

    And make sure none of your subroutine names or variables clash, and don't expect any email support from cPanel ;)
     
  3. WebOnce

    WebOnce Well-Known Member

    Joined:
    May 20, 2004
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Lansing, MI, USA
    Will that perl_startup be overwritten with exim.conf updates or is that in the clear?

    Thanks! :)
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No, the change won't be overwritten if done through the exim configuration editor.
     
  5. WebOnce

    WebOnce Well-Known Member

    Joined:
    May 20, 2004
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Lansing, MI, USA
    Awesome! :) Thanks chirpy.
     
Loading...

Share This Page