I want to pass emails from specific senders to a shell script via procmail.
Here's my original starter script:
LOGFILE=/home/foouser/procmail-log
VERBOSE=yes
MAILDIR=/var/spool/mail/foouser
DEFAULT=/var/spool/mail/foouser
SHELL=/bin/sh
:0
! `/home/foouser/fooscript.sh`
This works fine but it applies to all messages going to foouser. I'd like to set a condition so it only sends the message to the script if the email is from specific people on a whitelist. Is this possible?