I've spent pretty much the whole night trying to figure out how I can achieve the following:
If a certain Keyword, say [key], is in the subject line, then the email is forwarded to a list of people.
My recipe (now) looks like this:
* ^Subject: .*\[key\].*
The (verbose) procmail logfile gives me this:
procmail:  Sun Mar 13 03:20:30 2011
procmail: Assigning "MAILDIR=/fs/home1/student/j/USER/Mailfolder"
procmail: Assigning "DEFAULT=/fs/home1/student/j/USER/Mailfolder/IN-unmatched"
procmail: Assigning "INCLUDERC=/fs/home1/student/j/USER/Procmail/rc.forwarding"
procmail: Match on "^Subject: .*\[key\].*"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi firstname.lastname@example.org"
procmail: Executing "/usr/sbin/sendmail,-oi,email@example.com"
procmail: Notified comsat: "USER@:/usr/sbin/sendmail -oi firstname.lastname@example.org"
From email@example.com Sun Mar 13 03:20:30 2011
Subject: Fwd: [key] bla
Folder: /usr/sbin/sendmail -oi firstname.lastname@example.org 3474
Now, that does look like it actually worked, right? Well, the forwarded message never arrived at email@example.com
However, if I myself issue
echo "test"|sendmail -oi firstname.lastname@example.org
the message "test" arrives at email@example.com
Is my recipe wrong in any way? I pretty much copied it from available ones.
It's a university server, so I'm no admin, just a user. How can I figure out whether some setting that the admin made prevents procmail from calling sendmail or whatever?
What commands should I run to give you the info about the system you need to help me with that problem?