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: [email protected] pattern=*@+local_domains
13668 domain.de in "/etc/exim-localdomains"? yes (matched ...
13668 domain.de in "+local_domains"? yes (matched "+local_domains")
13668 [email protected] in "*@+local_domains : lsearch*@;/var/mail2print/senderaddresses"? yes (matched "*@+local_domains") 13668 [email protected] / sender_data=*@[email protected] <<<< !!!!

Regards
Juergen

--
Mail: [email protected]
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):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to