Re: [exim] Feeding Exim Queue IDs into another program / fil…

Pàgina inicial
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
A: exim-users
Assumpte: Re: [exim] Feeding Exim Queue IDs into another program / file
Marcin Krol <admin@???> (Mi 20 Dez 2006 11:52:57 CET):
> Hello,
>
> Is it possible to get Exim router or transport acquire and record queue
> ID this router / transport is processing (or possibly pipe queue ID into
> another program)?


$message_exim_id contains the current queue id. You may pass it to some
other program. But in your examples I do not see any reference to the
exim queue id:

>
> Let's say we have a router like this:
>
> domain_filter:
> driver = redirect
> allow_filter
> no_check_local_user
> condition = "${if exists{/etc/virtual/${domain}/filter}{yes}{no}}"
> user = "mail"
> file = /etc/virtual/${domain}/filter
> directory_transport = address_file
> pipe_transport = virtual_address_pipe
> retry_use_local_part
> no_verify
>
>
> ..or transport like this:
>
> spamcheck:
> driver = pipe
> batch_max = 100
> command = /usr/sbin/exim -oMr spam-scanned -bS
> current_directory = "/tmp"
> group = mail
> home_directory = "/tmp"
> log_output
> message_prefix =
> message_suffix =
> return_fail_output
> no_return_path_add
> transport_filter = /usr/bin/spamc -u
> ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}
> use_bsmtp
> user = mail



    Best regards from Dresden
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann HS12-RIPE -----------------------------------------
 gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -