Hello,
when I am trying to override the settings of the /etc/exim.pl.local
with
by placing the code in the
/usr/local/cpanel/etc/exim/perl/zzz_custom_overwrites
and running a rebuild
/scripts/buildeximconf
I am getting an error that $sender_address_domain is not globally declared - how to globally declare it? i thought it was..
any advices are welcome,
thx in advance
when I am trying to override the settings of the /etc/exim.pl.local
Code:
sub check_mail_permissions_headers {
return "X-Get-Message-Sender-Via: " . ( $primary_hostname ||= Exim::expand_string('$primary_hostname') ) . ": " . get_sender_lookup_method() . "\n" . "X-Authenticated-Sender: " . ( $primary_hostname ||= Exim::expand_string('$primary_hostname') ) . ": " . get_sender_lookup();
}
Code:
sub check_mail_permissions_headers {
return "X-Get-Message-Sender-Via: " . ( $sender_address_domain ||= Exim::expand_string('$sender_address_domain') ) . ": " . get_sender_lookup_method() . "\n" . "X-Authenticated-Sender: " . ( $sender_address_domain ||= Exim::expand_string('$sender_address_domain') ) . ": " . get_sender_lookup();
}
/usr/local/cpanel/etc/exim/perl/zzz_custom_overwrites
and running a rebuild
/scripts/buildeximconf
I am getting an error that $sender_address_domain is not globally declared - how to globally declare it? i thought it was..
Code:
Configuration file passes test! New configuration file was installed.
warn [buildeximconf] Warning: perlpkg could not create an optimize /etc/exim.pl.local: The subprocess reported error number 1 when it ended.: /usr/local/cpanel/3rdparty/bin/perl -c /usr/local/cpanel/tmp/exim.local.build.pl.static fails compile check:
Global symbol "$sender_address_domain" requires explicit package name (did you forget to declare "my $sender_address_domain"?) at /usr/local/cpanel/tmp/exim.local.build.pl.static line 2009.
Global symbol "$sender_address_domain" requires explicit package name (did you forget to declare "my $sender_address_domain"?) at /usr/local/cpanel/tmp/exim.local.build.pl.static line 2009.
BEGIN not safe after errors--compilation aborted at /usr/local/cpanel/tmp/exim.local.build.pl.static line 2052.
Warning: Failed to build a /etc/exim.pl.local does not pass use strict: The subprocess reported error number 255 when it ended.: Global symbol "$sender_address_domain" requires explicit package name (did you forget to declare "my $sender_address_domain"?) at /usr/local/cpanel/tmp/exim.local.build.pl line 2009.
Global symbol "$sender_address_domain" requires explicit package name (did you forget to declare "my $sender_address_domain"?) at /usr/local/cpanel/tmp/exim.local.build.pl line 2009.
/usr/local/cpanel/tmp/exim.local.build.pl had compilation errors.
Warning: perlpkg could not create an optimize /etc/exim.pl.local: The subprocess reported error number 1 when it ended.: /usr/local/cpanel/3rdparty/bin/perl -c /usr/local/cpanel/tmp/exim.local.build.pl.static fails compile check:
Global symbol "$sender_address_domain" requires explicit package name (did you forget to declare "my $sender_address_domain"?) at /usr/local/cpanel/tmp/exim.local.build.pl.static line 2009.
Global symbol "$sender_address_domain" requires explicit package name (did you forget to declare "my $sender_address_domain"?) at /usr/local/cpanel/tmp/exim.local.build.pl.static line 2009.
BEGIN not safe after errors--compilation aborted at /usr/local/cpanel/tmp/exim.local.build.pl.static line 2052.
/etc/exim.pl.local installed!
Refreshing SMTP Mail protection.
any advices are welcome,
thx in advance
Last edited by a moderator: