Hook file allowing to add the policyd whitelist to the i-MSCP MTA (Postfix)

  • Hook file allowing to add the policyd whitelist to the i-MSCP MTA (Postfix)


    This hook adds the policyd whitelist to the postfix main.cf


    Compatibility


    Git Master


    Howto install

    • Donwload the hook file into the /etc/imscp/hooks.d directory
    • Create a file /etc/postfix/imscp/policyd_weight_client_whitelist if it doesn't exists
    • Create a file /etc/postfix/imscp/policyd_weight_recipient_whitelist if it doesn't exists
    • Make the hook file only readable by root user (chmod 0600)
    • Run the imscp-setup script
  • Hi,


    I tried to do this, followed the steps, here is the result after I tried to run the imsc-setup script:
    (i-mscp version 1.1.9 eagle)


    /var/www/imscp/engine/setup# ./imscp-setup --reconfigure


    [FATAL ERROR]


    iMSCP::Debug::__ANON__: Unrecognized character \xC2; marked by <-- HERE after
    at master <-- HERE near column 72 at
    /etc/imscp/hooks.d/20_postfix_policyd_whitelist.pl line 13, <$fh> line 746.
    Compilation failed in require at
    /var/www/imscp/engine/setup/../PerlLib/iMSCP/HooksManager.pm line 160, <$fh>
    line 746.



    What can I do?

  • What do you mean with alternative? Instead of using a listener-file? No there isn't a better alternative atm.