I would like to run a script when an email is received. I added this line to /etc/aliases
When I send an email to myuser@domain, I see permission denied error in the maillog.
Aug 12 14:17:59 stag postfix/local: E5B8F67024F: to=, relay=local, delay=1596, delays=1596/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /home/myuser/mailer.rb: Permission denied )
The permission on mailer.rb is 755. Why would I get a permission denied error?
I would appreciate any help. Thanks!