Feed to Program Issue with Email Alias

SYSTEM INFORMATION
OS type and version Rocky 8
Webmin version 2.001
Virtualmin version 7.2
Related packages Email Alias

I’ve seen this topic around but no real resolution so I thought I would revisit.
I am trying to pipe my emails to a php script. The script basically grabs the email contents and loads them into a table (this is a client reuqest). Also I need to save the attachments if any to a directory that is accessible to the web so public_html.

So database stuff runs fine if I feed the program to /user/local/bin but not anywhere else so thats where I put the script.

Problem 1. the script won’t run unless there is preceding email so it runs one email behind which is wierd. Example: Inbox empty → send email → script does not run → send second email -script runs but only adds the first email.

Problem 2: I can’t run the script outside of usr/local/bin - if I want to run the script in say public_html for example - it needs to be public so users can view attachments from their browsers?

Can anyone suggest the correct permissions for this? I’ve tried the domain ownership and postfix:postfix but no luck.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.