I have a shell script which is looking for a mailbox path
result=`find /var/mailboxes -type d -name email@example.com` perl -pi -e 's/Folder-to-Remove//g' $result/subscriptions
but executing it via Dovecot Sieve I'm getting an error message:
lmtp: Error: find: `/var/mailboxes/63': Permission denied
/var/mailboxes/63 is not even owned by
Shell script has permission to execute by others.