|The short answer is 'yes'.
NOTE: You can not do this with a mailbox user (those m###### accounts) you have to do it with a real user (with shell access).
The new mail system (if you have a directory named 'Maildir' in your home directory, you're on the new mail system) works a bit differently however, and the previous documentation is incorrect.
Procmail isn't used as the LDA anymore, so you will need to pipe your mail through procmail. To do this, create a file (in your home directory) called ".forward.postfix". This file should have the single line (quotes included):
Be very careful not to use an editor that inserts DOS or Mac carriage returns to edit these files; ideally you should create them on the server using a text editor like Pico, vi, or emacs.
Note that procmail can be very picky about permissions. In particular, don't leave any procmail files or directories set to be group or world writable or procmail won't work properly.
You'll need to create a file named ".procmailrc", also in your home directory.
Here are some common variables that go in this file, and our suggestions on how to set them (username refers to your username):
You may wish to omit the LOGFILE variable unless you need these logs; they can get quite large if you don't remember to remove them periodically.
You can include rc files with this statement:
where filters.rc is the name of the file with your filters (this can be whatever you want).
Advanced users may wish to omit 'DEFAULT', and instead put the following after *all* other recipes:
This will avoid using a lockfile.
The new mail system uses a file format called 'Maildir' to store messages, and the Courier IMAP server. A few notes about adapting procmail recipes for use with this format:
1. Lockfiles are not necessary since Maildir uses an individual file for each message. Thus:
2. With courier IMAP, folders are stored inside Maildir and are all subfolders of the INBOX folder. Folders begin with a leading period ("."), so:
Your recipes (assuming you have already defined $MAILDIR in .procmailrc) might look something like this:
# put any mail from newdream or dreamhost in the folder 'junk'
# (we don't recommend that you actually use this one, of course)
# filter mutt-users list
# this will create 'mutt' as a subfolder of 'lists', which, in turn is
# a subfolder of "INBOX"
* ^Return-Path: <mutt-users-owner
# Filter mail to or CC my 'email@example.com' address to "blah"
# Send this jerk straight to the bit-bucket
Note that a '.' will match any character; if you want to match a literal period, you should escape it with a backslash (as in the examples above).
Please contact support via the Account Control Panel if you have any further questions regarding procmail. Use the links below to learn more about procmail:
Last updated: Feb 26, 2005.