# Exim filter <== do not edit or remove this line! # Tries to deliver bounces to original sender # (c) By Juan R. Pozo, 27/Oct/2002, mailto: jrpozo@conclase.net # Released under the GPL. See license at: # http://html.conclase.net/cp/scripts/license.html # USE AT YOUR OWN RISK - NO WARRANTIES IMPLIED # Latest version: http://html.conclase.net/cp/scripts/2somebody.txt # Mailing list: http://www.conclase.net/mailman/listinfo/cpanel_conclase.net # To install: # 1) cd / # 2) wget http://html.conclase.net/cp/scripts/2somebody.txt # 3) edit 2somebody.txt to use your own default nobody address (see below) # 4) chmod 0644 2somebody.txt # 5) chown nobody.nobody 2somebody.txt # 6) cp -a .forward .forward.bak # 7) mv -r 2somebody.txt .forward # Please consider making a donation today. # Visit my amazon.com wishlist at: # http://html.conclase.net/link/wishlist # Thanks :) # Remember to substitute (all 4 instances) for your own # nobody address. For example, instead of # deliver # write # deliver admin@yourdomain.com # Uncomment next line if you want to receive a copy of all bounces: # unseen deliver if first_delivery then if error_message then if $message_body matches "Reply-To:\\\\s*(\\\\S+)" then deliver $1 elif $message_body_end matches "Reply-To:\\\\s*(\\\\S+)" then deliver $1 elif $message_body matches "From:\\\\s*(\\\\S+)" then deliver $1 elif $message_body_end matches "From:\\\\s*(\\\\S+)" then deliver $1 else deliver endif else deliver endif else deliver endif finish