[Mimedefang] filter feedback desired

Kevin A. McGrail kmcgrail at pccc.com
Tue Dec 30 18:43:19 EST 2003


You are totally on the write path.  Minor edits mostly based on the maildrop
FAQ:

#Change Sender case to all lower case to confirm the check is absolute a 1:1
check
if (lc($Sender) eq "email at address") {
    # Add a header with original recipients, just for info
    action_add_header("X-Orig-Rcpts", join(", ", @Recipients));

   # Remove original recipients
   foreach $recip (@Recipients) {
      delete_recipient($recip);
   }
   add_recipient('other at address');
 }

We've had a bunch of discussions now regarding sendmail and stickhosts and
masquerade as with Vivek and Ray and David so if you are using masquerade_as
or mailhub in your sendmail.mc, this very likely won't work without adding
FEATURE(`stickyhost')dnl which breaks otherthings (sendmail.cL files and
possible alias files).  So beware the implementor!

KAM

> My aim is to snag emails with a particular envelope address and redirect
> them to another envelope address.
>
> So, in filter_end I have:
>
> if ($Sender eq "email at address") {
>      foreach $recip (@Recipients) {
>          delete_recipient($recip);
>      }
>      add_recipient(other at address);
> }
>
> Comments?



More information about the MIMEDefang mailing list