I have setup a Postfix mail server, and my goal was to pipe incoming emails to a script. I did this via Procmail. The script is getting run without any issues.
my issue is: I want to deliver a copy of the incoming email to the users inbox as well. following is my .procmailrc file. Also I'm using Maildir format.
LOGFILE=$HOME/procmail.log
VERBOSE=YES
SHELL=/bin/sh
MAILDIR=$HOME/Maildir
:0
|/home/user1/script.sh
:0c
!user1@notification.mydomain.com
with the above .procmailrc file, script is getting run, but no email is getting delivered to users inbox.