advertisement

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":



# This is a front end script for the Cyrus "deliver" program
# that forces the username to lowercase
#
# usage: deliver $USER
#
if [ -n "$1" ]; then
user=`echo $1 | tr A-Z a-z`
/usr/bin/cyrus/bin/deliver -e -a $user -m user/$user;
fi


2. Change the last line of the file "/etc/procmailrc" to ...


    | /usr/local/bin/deliver $USER

Main Topics Oldest First

Showing messages 1 through 2 of 2.

  • 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
  • BTW kids, it's case-sensitive
    2004-03-03 11:50:28  juhnke [Reply | View]

    Loganj! Thanks for this script. We've been having a terrible time with the case sensitivity issue. We've run into a strange catch. It seems with this case script in place Spamassassin (through spamd) is no longer able to move the detected spam to the appropriate folder.

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

    Thanks!