Hi,
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:
Code:
:0
* ^Subject: .*\[key\].*
! my-email@gmail.com
The (verbose) procmail logfile gives me this:
Code:
procmail: [16756] 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 my-email@gmail.com"
procmail: Executing "/usr/sbin/sendmail,-oi,my-email@gmail.com"
procmail: Notified comsat: "USER@:/usr/sbin/sendmail -oi my-email@gmail.com"
From some-email@gmail.com Sun Mar 13 03:20:30 2011
Subject: Fwd: [key] bla
Folder: /usr/sbin/sendmail -oi my-email@gmail.com 3474
Now, that does look like it actually worked, right? Well, the forwarded message never arrived at
my-email@gmail.com.
However, if I myself issue
Code:
echo "test"|sendmail -oi my-email@gmail.com
the message "test" arrives at
my-email@gmail.com instantly.
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?
Thanks guys!
Jona