[Mimedefang] From Specific Address's

Tilman Schmidt t.schmidt at phoenixsoftware.de
Fri Oct 21 09:46:01 EDT 2011


-----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('interception-service at cia.example.org');
}

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-----



More information about the MIMEDefang mailing list