[exim] Re: detainting a sender address in a router/transport

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jürgen Edner via Exim-users
Fecha:  
A: exim-users
Asunto: [exim] Re: detainting a sender address in a router/transport
Hello Jeremy,

On 12/29/23 10:18, Jürgen Edner via Exim-users wrote:

 >> print_route:
 >>    driver     = manualroute
 >>    local_part_prefix = print/
 >>    route_list = domain.de
 >>    senders    = *@+local_domains : 

lsearch*@;/var/mail2print/senderaddresses
 >>    transport  = print_transport


>> print_transport:
>> driver = pipe
>> command = /usr/bin/mail2print -sender "$sender_data" -queue

"$local_part_data"
 >>   home_directory = /tmp
 >   user    = exim


> So, that "senders=" option should be a good candidate for
> filling in $sender_data. Note: not $sender_address_data.


Thank you for the hint. I gave it a try and checked what happed in 
detail. Unfortunately, $sender_data doesn't contain the correct sender 
address after the senders check has been succeeded, instead a part of 
the matching check is returned.

13668 stripped prefix print/
13668 checking senders
13668 address match test: subject=juergen@??? pattern=*@+local_domains
13668 domain.de in "/etc/exim-localdomains"? yes (matched ...
13668 domain.de in "+local_domains"? yes (matched "+local_domains")
13668 juergen@??? in "*@+local_domains : 
lsearch*@;/var/mail2print/senderaddresses"? yes (matched "*@+local_domains")
13668 sender_address=juergen@??? / 
sender_data=*@+local_doma@???              <<<< !!!!

Regards
Juergen

-- 
Mail: juergen.edner@???
GPG Key available


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/