Before I get started just wanted to say any help is greatly appreciated!
I’m trying to get e-mail piping to work so that I can process attachments with PHP. Specifically, I’m sending images to a specific email address and based on who it came from, store the image into a specific folder.
Steps I’ve taken thus far are:
- Set up shell access for a particular user
- Have e-mail address that forwards to the above shell user.
- Set up a filter so that any email that hits the email address in 2) with a subject that contains the word “Picture” is forwarded to the shell account.
After doing those three steps I set up a .forward.postfix file in my home directory for that user which has:
In order to test this I simply have the script email my personal e-mail once the script is ran. However, I’m not getting anything sent to my email…
Is there anything I’m doing wrong or a way I can confirm that the emails are forwarding? Like I said, any help is greatly appreciated!