cPanel - failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router:


Error:


When i run the following command in terminal i got an errors as shown below. I got this error in a cpanel 11.32.5 (build 18) server.

# exim -bt test@yourdomain.com


LOG: MAIN PANIC
  failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router: Undefined subroutine &main::check_mail_permissions called.

LOG: MAIN PANIC
  failed to expand condition "${perl{enforce_mail_permissions}}" for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.

LOG: MAIN PANIC
  failed to expand condition "${perl{increment_max_emails_per_hour_if_needed}}" for increment_max_emails_per_hour_if_needed router: Undefined subroutine &main::increment_max_emails_per_hour_if_needed called.




Solution:

The following script helped me to fix the error.

# /scripts/buildeximconf

2 thoughts on “cPanel - failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router:”

  1. Hi,

    I am getting following error.Let me know why this happens


    2016-04-28 10:36:42 1ave9t-003Vrc-8k ** devendar.vellikannan@mainetti.com R=enforce_mail_permissions: check_mail_permissions failed to complete or set a status
    2016-04-28 10:36:51 1ave9v-003Vqd-NC failed to expand condition "${if and{{bool_lax{NULL}}{bool_lax{${perl{check_mail_permissions}}}}}}" for check_mail_permissions router: syntax error in Exim::expand_string argument: failed to open /etc/outgoing_mail_suspended_users for linear search: No such file or directory at /etc/exim.pl.local line 589.


Leave a Reply