I'm trying to set up a procmail filter for a user that doesn't exist on the system. Is this possible?
I wrote the filter using my account and it works perfectly. I had to create a .forward file to send my incoming mail to procmail.
In the end though I want this filter to work when mail is sent to
data@host.com. Data is not a user on my system. I tried setting up a universal /etc/procmailrc file but mail is getting bounced back as undeliverable. Procmail appears to be installed setuid root.
I tried setting up a user account for data and copied the files into data's home directory. I changed the paths to reflect the move. Mail is delivered but never gets processed by procmail. I set up a .forward file just like I had for my account but it seems to be bypassed. If I manually run the mailbox through procmail it works as expected.
I'd prefer to set up a universal recipe instead of setting a user account up if thats possible. Either way though as long as it works that's what counts. Thanks for any help.
.forward
Code:
"|IFS=' ' && exec /usr/bin/procmail || exit 75 # data"
.procmailrc
Code:
LOGFILE=/home/data/procmail.log
VERBOSE=1
:0 :
# If there is an attachment run the shell script
* Content-Type: multipart/mixed
| munpack.bash
:0
#| Else reply requesting the expected files
| (formail -brt -I 'From: <data@host.com>' ; cat $HOME/mail.msg) | $SENDMAIL -t