[Mimedefang] Forwarded Email Blocking

Kevin A. McGrail kmcgrail at pccc.com
Wed Aug 4 10:18:59 EDT 2004


I have email that is improperly being forwarded to my account and I want to
block it.

Currently, I am using filter_recipient and it does work.  Here is my code:

if ($recip =~ /^<?phw@(mnsinc|mns|monumental)\.com>?$/i ) {
    return ('DISCARD', "Invalid Account");
    md_syslog('warning', "Discarding $recip - MNS/Monumental SPAM");
  }

My theory is that the $recip is the forwarded_to address but I'm not 100%
sure.  Any insight appreciated.

Regards,

KAM



More information about the MIMEDefang mailing list