procmail
[Top] [All Lists]

OSX Procmail Problem when invoking recipe from other dir than User

2004-06-18 19:41:46
Hello all,

I have a OSX Panther Server set up, and I would like to Filter my Mail with
Procmail. I don't want to have any .procmailrc files in the Users Home
Directory, because other than a few Test Accounts they don't have Home
directories setup. I like to have only global Recipes sitting somewhere else
on the System which do their Job for everybody.

Now the only recipe I like to get to work for now is this
------
:0
* ^Subject:.*test
! me(_at_)mydomain(_dot_)com
------

###############
If my /etc/procmailrc looks like this, everything works fine

# Master Procmail Recipe for Postfix > Procmail > Cyrus
# 
### 
PATH=/bin:/usr/bin:/usr/bin:/etc
DELIVERTO="/usr/bin/cyrus/bin/deliver"
USERINBOX="$DELIVERTO -e -a $USER -m user/$USER"
SHELL=/bin/sh 

VERBOSE=on 
LOGFILE="/procmail.log"

INCLUDERC=/Users/$USER/.procmailrc
#INCLUDERC=/etc/.procmailrc

:0 w 
| $USERINBOX 

--------
Corresponding Log file Output


 procmail: Assigning "INCLUDERC=/Users/admin/.procmailrc"
 procmail: Match on "^Subject:.*test"
 procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi
 me(_at_)mydomain(_dot_)com" 
 procmail: Notified comsat: "cyrus@:/usr/sbin/sendmail -oi 
me(_at_)mydomain(_dot_)com"
 Subject: Test 
 Folder: /usr/sbin/sendmail -oi me(_at_)mydomain(_dot_)com 558
 procmail: Executing "/usr/sbin/sendmail,-oi,me(_at_)mydomain(_dot_)com"
 procmail: Assigning "INCLUDERC=/Users/me/.procmailrc"
 procmail: Couldn't read "/Users/me/.procmailrc"
 procmail: Executing "/usr/bin/cyrus/bin/deliver,-e,-a,me,-m,user/me"
 procmail: Assigning "LASTFOLDER=/usr/bin/cyrus/bin/deliver -e -a me -m
user/me" 
 procmail: Notified comsat: "cyrus@:/usr/bin/cyrus/bin/deliver -e -a me -m
user/me" 
 Subject: Test 
 Folder: /usr/bin/cyrus/bin/deliver -e -a me -m user/me 665

###############


When i have my Procmailrc setup like this, it wont work. Why?


# Master Procmail Recipe for Postfix > Procmail > Cyrus
# 
### 
PATH=/bin:/usr/bin:/usr/bin:/etc
DELIVERTO="/usr/bin/cyrus/bin/deliver"
USERINBOX="$DELIVERTO -e -a $USER -m user/$USER"
SHELL=/bin/sh 

VERBOSE=on 
LOGFILE="/procmail.log"

#INCLUDERC=/Users/$USER/.procmailrc
INCLUDERC=/etc/.procmailrc

:0 w 
| $USERINBOX 
--------
Log File

 procmail: Assigning "INCLUDERC=/rc/.procmailrc"
 procmail: Match on "^Subject:.*test"
 procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi 
me(_at_)mydomain(_dot_)com"
 procmail: Notified comsat: "cyrus@:/usr/sbin/sendmail -oi 
me(_at_)mydomain(_dot_)com"
 Subject: Test 
 Folder: /usr/sbin/sendmail -oi me(_at_)mydomain(_dot_)com 558
 procmail: Executing "/usr/sbin/sendmail,-oi,me(_at_)mydomain(_dot_)com"
 procmail: Assigning "INCLUDERC=/rc/.procmailrc"
 procmail: Match on "^Subject:.*test"
 procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi 
me(_at_)mydomain(_dot_)com"
 procmail: Notified comsat: "cyrus@:/usr/sbin/sendmail -oi 
me(_at_)mydomain(_dot_)com"
 Subject: Test 
 Folder: /usr/sbin/sendmail -oi me(_at_)mydomain(_dot_)com 665
 procmail: Executing "/usr/sbin/sendmail,-oi,me(_at_)mydomain(_dot_)com"
###############

For some reason when I call the recipe sitting in a Users Home folder, the
end of the log says Executing Cyrus, while when I call a recipe sitting
somewhere else, the end of the log file says executing sendmail.

Sorry for this lengthy Mail, but I hope to be clear.
Please help if you can,
Thanks and regards,
David


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • OSX Procmail Problem when invoking recipe from other dir than User, David Schulz <=