Re: [exim] acl_c[0..9]

Pàgina inicial
Delete this message
Reply to this message
Autor: Peter Bowyer
Data:  
A: exim-users
Assumpte: Re: [exim] acl_c[0..9]

Voodoo wrote:

>Hello,
>
>i want to choice interface (in transport) depending on $sender_addres,
>$sender_host_address.. from cdb-databases. In ACL set interface to acl_c0
>and in TRANSPORT try to use it:
>me_smtp:
>    driver = smtp
>    interface = $acl_c0
>It does not work.

>
>
>as for test in ACL do
>    exim-acl_data:
>accept set acl_m5=$domain
>       set acl_c0=$local_part
>       delay = 5s

>
>
>

It's not the acl variable that isn't working - it's the fact that
$local_part isn't available in the DATA acl because there may be more
than one recipient.

If you simply want to choose the interface based on the recipient
localpart, you have $local_part available in the transport for use in a
lookup there. But from what you said, you actually want to select based
on $sender_address or $sender_host_address, so the localpart business is
a red herring....

You can access $sender_address or $sender_host_address in your transport
for use in a lookup.

eg

interface =
${lookup{$sender_host_address}cdb{/path/to/file}{$value}{..some default
value to use if not found...}}

Peter