Hi all. I have been banging my head against the wall for two days.
Hoping you can help; this isn’t strictly a rails problem, but
something I’m encountering in trying to get rails and postfix to work
I want to automate dealing with bounced messages, so I have bounced
emails bounce back to “[email protected]”
I want to do this in my /etc/aliases file:
bounces: | "RAILS_ENV=production /usr/bin/ruby /home/rails/appname/
so that I can process the email in rails.
But it’s not working, and I don’t know what I’m doing wrong, so I
tried the following:
If I have “bounces: root”, then the email gets properly directed to
root’s email folder fine, so the alias stuff should be working, but
piping to a trivial command doesn’t seem to work at all. If I do
bounces: | “echo ‘hi’ > /tmp/test”
I see nothing when I send an email to bounces.
Anybody have any ideas?