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

WebOnce

Well-Known Member
May 20, 2004
53
0
156
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! :)
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
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 ;)
 

WebOnce

Well-Known Member
May 20, 2004
53
0
156
Lansing, MI, USA
chirpy said:
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 ;)
Will that perl_startup be overwritten with exim.conf updates or is that in the clear?

Thanks! :)
 

WebOnce

Well-Known Member
May 20, 2004
53
0
156
Lansing, MI, USA
chirpy said:
No, the change won't be overwritten if done through the exim configuration editor.
Awesome! :) Thanks chirpy.