MailScanner --lint + Could not use Custom Function code

Discussion in 'Server Operation' started by vms, Mar 22, 2018.

  1. vms

    vms New Member

    Good Day'

    MailWatch Version: 1.2.7 + MailScanner Version: 5.0.7

    When I ran MailScanner --lint I am getting this error below :-

    Could not use Custom Function code /usr/share/MailScanner/perl/custom/, it could not be "require"d. Make sure the last line is "1;" and the module is correct with perl -wc (Error: Can't locate Encoding/ in @INC (@INC contains: /usr/sbin /usr/sbin/MailScanner /usr/share/MailScanner/perl /usr/share/MailScanner/perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/MailScanner/perl/custom/ line 43.
    BEGIN failed--compilation aborted at /usr/share/MailScanner/perl/custom/ line 43.
    Compilation failed in require at /usr/share/MailScanner/perl/MailScanner/ line 753.
    ) at /usr/share/MailScanner/perl/MailScanner/ line 755.

    Any helpers?


  2. vms

    vms New Member

    Upgraded perl
    Copied to the directory /usr/share/MailScanner/perl/custom/ where it was missing.
    till likes this.

Share This Page