Re: [exim] Intercept messages by Subject

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andrew Radamis
Date:  
À: exim-users
Sujet: Re: [exim] Intercept messages by Subject
Perfect, I can make this work. Thanks very much for your help.

On Wed, Nov 10, 2010 at 4:54 PM, Heiko Schlittermann <hs@???>wrote:

> Andrew Radamis <rust710@???> (Mi 10 Nov 2010 22:33:11 CET):
> > Hi,
> >
> > Is is possible to redirect messages from a certain host, user and
> including
> > specific words in the subject? We have an automated system that generates
> > email for our clients and one of it's messages is incorrect but it is not
> > possible to fix the program so I was wondering if it was possible to
> > intercept the message, pass it to another program to fix and then send it
> > on, from the exim mail server, but only the messages with the right words
> in
> > the subject.
> >
> > I've been using exim for a while and know how to use the pipe transport
> so
> > I'm really just looking for how to make exim detect a message based on
> > subject.
> >
> > Thanks for your help,
>
> You can use some rule in your data acl to set an acl variable.
> But I'd say you can even use some condition in the transport.
> Probably even a condition in some router might be a solution.
>
> ACL:
>
>    warn    condition = ${if match{$h_subject:}{bad word}}
>            set acl_m_fixme = 1

>
>
> Later on in your routers or transports you can use $acl_m_fixme in some
> condition.
>
> Alternativly
>
>    # smtp transport
>    smtp:
>        driver = smtp
>        transport_filter = ${if match{$h_subject}{bad word}
> {/usr/local/sbin/fixer} {}}

>
>
> Nothing is tested or proven to be correct. Please just consider it as
> hints ☺
>
> --
> Heiko :: dresden : linux : SCHLITTERMAN.de
> GPG Key 48D0359B : 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAkzbFIgACgkQ7k6smEjQNZsl3gCgxJrDFyT1gMOAeMAlLZh3EYWy
> 6GEAniiAvKNf0q4/j3kSqrZNvndiE89D
> =BvwS
> -----END PGP SIGNATURE-----
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>