On 10/21/2011 10:55 AM, Les Mikesell wrote:
On Fri, Oct 21, 2011 at 9:44 AM, Aaron Enders<[email protected]>  wrote:
You my friend are ingenious this worked perfectly the first time through, I
can't thank you enough. I do have one more piece to the puzzle I have a
question on...

What filter part scans outgoing email? I would like to have all outgoing
emails sent to said domains copied also..

All mail going through the machine is scanned.  MimeDefang doesn't
have a concept of 'direction'.

Aaron,

What he means is MD sees email and you have to write logic to determine if it's inbound or outbound.

However, for your case, I imagine you know the domain you want to archive so you could do loop in filter_end based on domain. If that domain is handled on the same box, you'll need to check the file HEADERS line by line to see if there is a header match to prevent loops, etc.

   my ($recip);
   foreach $recip (@Recipients) {
      if ($recip =~ /\@domain\.com)>?$/i) {
        action_add_header("X-IMAHEADER","Testing");
        add_recipient('[email protected]');
md_syslog('warning', "Preserving Email because of recipient: $recip");
      }
    }

regards,
KAM
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to