procmail
[Top] [All Lists]

Procmail problem (fwd)

2000-12-13 12:21:27
I recently changed mail addresses.  Most people have stopped using the old 
email address, and I have unsubbed/resubbed mailing lists.  I suvccessfully 
used procmail on the old account for years and am using it on the new one as 
well.

My old account still exists for some indefinite period of time.  I originally 
set up the .forward on the old account to just forward everything to the new 
address.  Then I set up a separate mail folder to get all the mail from the 
old address so I could unsub/resub, or notify people still using that address 
they should stop.

That led to three problems:

1)  Some idiot mail lists have broken unsub processes, and will not unsub me 
no matter what I do.

2)  My current setup on my new address bypasses my spam filters for mail 
forwarded from the old address.

3)  Manually telling people about the new address is a pain.

I set up a new .procmailrc to remedy these problems, as follows:

########################################################################
#Set variables
SHELL    = "/usr/bin/sh"
VERBOSE  = 1
LINEBUF  = 4096
MAILDIR  = $HOME/Mail 
LOGFILE  = $MAILDIR/log
SENDMAIL = /usr/lib/sendmail
FORMAIL  = /apps/bin/formail
NL       = "
"
WSPC     = "    "
SPC      = "[$WSPC]"
NSPC     = "[^$WSPC]"
WSPCL    = "( | |$)"
s        = $SPC
d        = "[0-9]"
w        = "[0-9a-zA-Z]"
W        = "[^0-9a-zA-Z]"
a        = "[a-zA-Z]"
SUPREME  = 9876543210
MY_XLOOP = xl_mcmaster(_at_)jcmxl
MYISP    = stortek\.com
SLACK    = 0

########################################################################
#Eliminate duplicate messages
#:0 Wh:msgid.lock
#| formail -D 8192 msgid.cache

########################################################################
#Force the "From user date" to become part of header
:0 Whf
| $FORMAIL -c -z -R 'From ' X-Envelope-From:

########################################################################
#Apply spam-catcher rules from:
#   http://alcor.concordia.ca/topics/email/auto/procmail/spam/
tag_dir=/home/mcmaster/spamtools
trash_header="X-Procmail: unwanted"
INCLUDERC=$tag_dir/tag
INCLUDERC=$tag_dir/tag-contents
INCLUDERC=$tag_dir/tag-radical
INCLUDERC=$tag_dir/delete.procmailrc
########################################################################
#Bounce idiots who won't unsubscribe me
:0 h
*^From.*(funnybone|javascriptsource|cert-advisory|MysteryNet|jokeaday|gagler|j
ok
e-of-the-day|learningkingdom)
EXITCODE=67
:0 h
*^To.*(clustering(_at_)alinka|nmh-workers|sol(_at_)lyris)
EXITCODE=67

########################################################################
#Tell people address has changed
:0 c
| (echo "From: mcmaster(_at_)jcm(_dot_)stortek(_dot_)com" ;                     
       \
   $FORMAIL -r -A"Precedence: junk"                                   \
   -A"X-Loop: $MY_XLOOP" ;                                            \
   echo "My email address has changed\n"                              \
        "Please send future correspondence to:\n"                     \
        "mcmaster(_at_)falcon(_dot_)stortek(_dot_)com\n"                        
       \ 
        "\n"                                                          \
        "The email you just sent has been automatically forwarded.\n" \
        "-- \n"                                                       \
        "Jim McMaster\n"                                              \
        "this has been an automated response\n"                       \
             ) | $SENDMAIL

########################################################################
#Everything else to tatanka
:0
! mcmaster(_at_)falcon(_dot_)stortek(_dot_)com
########################################################################

I set up the .forward as:
"|IFS=' '&&p=/apps/bin/procmail&&test -f $p&&exec $p -f-||exit 75#mcmaster"

I verified the location of all executables, and .forward is world-readable.

When I send a test message to the old address, it just vanishes.  There is no 
log file at all, and the mail does not appear in any of the usual locations.  
It looks like procmail is not running at all.  Can anyone tell me where to 
start looking for the dumb mistake I am making?

-- 
Jim McMaster
mailto:mcmaster(_at_)falcon(_dot_)stortek(_dot_)com



_______________________________________________
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>