[Mimedefang] Redirecting spam

Ashley M. Kirchner ashley at pcraft.com
Mon Oct 3 16:21:12 EDT 2005

    I want to redirect messages that would otherwise be bounced due to 
high spam score to a local mailbox instead.  After searching the 
archives, I came across the following snippet:

    # Add a header with original recipients, just for info
    action_add_header("X-Orig-Rcpts", join(", ", @Recipients));

    # Remove original recipients
    foreach $recip (@Recipients) {

    # Send to spam address
    add_recipient('spamdrop at mydomain.net');

    I presume this ends up in filter_end()?

W | It's not a bug - it's an undocumented feature.
  Ashley M. Kirchner <mailto:ashley at pcraft.com>   .   303.442.6410 x130
  IT Director / SysAdmin / Websmith             .     800.441.3873 x130
  Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
  http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.

More information about the MIMEDefang mailing list