| Article: |
Sanitizing Mail on Panther Server | |
| Subject: | BTW kids, it's case-sensitive | |
| Date: | 2004-02-11 16:25:53 | |
| From: | loganj1 | |
|
Response to: BTW kids, it's case-sensitive
|
||
|
Not the preferred solution, but it works ... 1. Put the following shell script in the file "/usr/local/bin/deliver": 2. Change the last line of the file "/etc/procmailrc" to ... | /usr/local/bin/deliver $USER |
||
Showing messages 1 through 4 of 4.
-
BTW kids, it's case-sensitive
2004-03-03 11:50:28 juhnke [Reply | View]
-
BTW kids, it's case-sensitive
2004-05-11 10:06:35 loganj1 [Reply | View]
Sorry for the slow response. I actually use the script below, where the folder name is an optional parameter. You might need to visit the spamassassin scripts and change any $default delivery mechanism to the following ...
/usr/local/bin/deliver $user $foldername
# This is a front end script for the Cyrus "deliver" program
# that forces the username to lowercase, and formats a mailbox
# name properly (per RFC821) except that mailbox names can not
# have two adjacent spaces.
#
# usage: deliver $USER ["MailBoxName"]
#
if [ -z "$1" ]; then
/usr/bin/cyrus/bin/deliver -e -a loganj -m user/loganj;
else
user=`echo $1 | tr A-Z a-z`
mbox=`echo $2 | sed -e "s; ;\\\\\\ ;g"`
if [ -z "$2" ]; then
/usr/bin/cyrus/bin/deliver -e -a $user -m user/$user;
else
/usr/bin/cyrus/bin/deliver -e -a $user -m "user/$user/$mbox";
fi
fi
-
BTW kids, it's case-sensitive
2004-05-11 10:24:54 loganj1 [Reply | View]
Hmmmm, in the script above replace "loganj" with "postmaster" or someone that you want to be notified about errors. I didn't post this script originally because it's world class ugly, but I haven't had time to improve it - anyone with a better solution?
-
BTW kids, it's case-sensitive
2004-05-26 12:33:32 furbo_dude [Reply | View]
A simpler solution is to do the case conversion in /etc/procmailrc:
# convert user name to all lowercase
USER=`echo $USER | tr "[:upper:]" "[:lower:]"`
# if no matches above, deliver message to the user's inbox
:0w
| /usr/bin/cyrus/bin/deliver -a $USER -m user/$USER
-ch




Have you had this experience? What should we be looking at?
Thanks!