-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 21.10.2011 14:27, schrieb Aaron Enders:
> Can mimedefang be used to inspect the "from" address and if it matches a
> specific From *@example.com address forward a copy to another mailbox?

Sure. The envelope "from" address is available in the $sender
variable. Forwarding a copy can be achieved with the
add_recipient() function.

> If so any examples would be appreciated.

- From the top of my hat, untested, YMMV, you get the idea...:

if ($sender =~ /\@example\.com>/) {
    add_recipient('[email protected]');
}

This causes BCC style forwarding. If you want CC style, add a
"CC:" header to the mail itself via action_add_header().

HTH
T.

- -- 
Tilman Schmidt
Abteilungsleiter Technik
- ----------------------------------------------------------------
Phoenix Software GmbH                       Tel. +49 228 97199 0
Geschäftsführer: W. Grießl                 Fax  +49 228 97199 99
Adolf-Hombitzer-Str. 12                   www.phoenixsoftware.de
53227 Bonn, Germany                    Amtsgericht Bonn HRB 2934
- ----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6hd5gACgkQ780oymN0g8MVTACgmQs9QIJUPCiKN2XRA+g6ZSUi
IXUAoMZyWhTR5NfFT/sbxJdnznrAKEpH
=me3y
-----END PGP SIGNATURE-----
_______________________________________________
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