Re: [EXIM] global filtering+$local_part

Top Page
Delete this message
Reply to this message
Author: Tibor Koleszar
Date:  
To: exim-users
Subject: Re: [EXIM] global filtering+$local_part
> ... which also tells you that $recipients, in a system filter, contains
> a list of all the message's recipients.

ahh. i thought i'm the dumb.
$recipients give me an other problem: how can i do a string lookup if the
$recipients is nat a 'simple' string but a list.

I had to do the queued-smtp thing, and i did this:

if "${lookup {${domain:$header_to:}} lsearch {/etc/mail/queued-smtp.db} {$value}}" is not ""
then
deliver "${local_part:$header_to:}@${lookup {${domain:$header_to:}} lsearch {/etc/mail/queued-smtp.db} {$value}}"
endif

/etc/queued-smtp.db is like:

domain.org:    [123.123.123.123]
domain2.org:    [122.122.122.122]
.
.


if $header_to: is for example: "smith@???, smith2@???" the my
if does not work. (if the local user smith@??? is in the Cc or the
Bcc filed it not works too...)

Any suggestion? $recipients looks good, but a bit hard to me (im using
sendmail for 3 years, i love exim but every start is hard)

Regards, Tibor

--
.-( IntegraNET )-------( Internet Service Provider Corporation )-.
| Koleszár Tibor - System engineer                               |
| E-mail         : t.koleszar@???, oldw@???         |
| Public PGP key : http://master.debian.org/~oldw/public.key.asc |

`----------------------------------------------------------------'


--
*** Exim information can be found at http://www.exim.org/ ***