I have a shell script which is looking for a mailbox path
result=`find /var/mailboxes -type d -name me@my-domain.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
where /var/mailboxes/63
is not even owned by me@my-domain.com
Shell script has permission to execute by others.