Re: [exim] Tainted arg 2 for mailman_transport transport com…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Odhiambo Washington
Datum:  
To: Thomas Krichel
CC: Exim users list
Alte Treads: Re: [exim] Tainted arg 2 for mailman_transport transport command
Betreff: Re: [exim] Tainted arg 2 for mailman_transport transport command
On Sun, Aug 21, 2022 at 10:40 AM Odhiambo Washington <odhiambo@???>
wrote:

>
>
> On Fri, Jul 22, 2022 at 9:21 AM Thomas Krichel via Exim-users <
> exim-users@???> wrote:
>
>>
>> Andrew C Aitchison via Exim-users writes
>>
>> > Thomas and I are going to take this offline for a while.
>>
>> Well not that long of a while. Andrew has come up with a
>> router and a transporter that I have tested to work on
>> a separate installation.
>>
>> mailman_router:
>>     driver = accept
>>     local_parts = dsearch,filter=dir;MM_HOME/lists
>>     require_files = MM_HOME/lists/$local_part_data/config.pck
>>     local_part_suffix_optional
>>     local_part_suffix = -bounces : -bounces+* : \
>>                         -confirm+* : -join : -leave : \
>>                         -owner : -request : -admin
>>     domains = +mm_domains
>>     transport = mailman_transport

>>
>> mailman_transport:
>>    driver  = pipe
>>    command = MM_WRAP \
>>            '${if def:local_part_suffix \
>>                  {${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
>>                  {post}}' \
>>             ${lc:$local_part_data}
>>    current_directory = MM_HOME
>>    home_directory    = MM_HOME
>>    user              = MM_UID
>>    group             = MM_GID

>>
>> In Debian MM_HOME would /var/lib/mailman.
>>
>> As Andrew writes
>>
>> > The changes should just be the router has a new line
>> >    local_parts = dsearch,filter=dir;MM_HOME/lists
>> > and in both $local_part becomes $local_part_data

>>
>> This closes the problem.
>>
>> My great thanks to Andrew and all other respondents here!
>>
>>
> Using this very same router and transport, I am a little surprised that I
> still did get a hit on the taint issue:
>
> mailman_transport transport returned FAIL for
> listname-bounces+johndoe=at.co.ke@???
> post-process listname-bounces+johndoe=at.co.ke@??? (2)
> LOG: MAIN
> ** listname@???
> <listname-bounces+johndoe=at.co.ke@???> R=mailman_router
> T=mailman_transport: Tainted arg 1 for mailman_transport transport command:
> 'bounces'
> >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
> changed uid/gid: post-delivery tidying
> uid=26 gid=26 pid=22462
> auxiliary group list: 26
> set_process_info: 22462 tidying up after delivering 1oOacJ-000Fkn-0q
> Processing retry items
> Succeeded addresses:
> Failed addresses:
> Deferred addresses:
> listname-bounces+johndoe=at.co.ke@???: no retry items
> end of retry processing
> LOG: MAIN
> Frozen (delivery error message)
> delivery deferred: update_spool=1 header_rewritten=0
> Writing spool header file: /var/spool/exim//input//hdr.1oOacJ-000Fkn-0q
> DSN: **** SPOOL_OUT - address:
> <listname-bounces+johndoe=at.co.ke@???> errorsto: <NULL>
> orcpt: <NULL> dsn_flags: 0x0
> Renaming spool header file: /var/spool/exim//input//1oOacJ-000Fkn-0q-H
> Size of headers = 710
> end delivery of 1oOacJ-000Fkn-0q
> search_tidyup called
> search_tidyup called
> >>>>>>>>>>>>>>>> Exim pid=22462 (fresh-exec) terminating with rc=0
> >>>>>>>>>>>>>>>>
>


Hello good people,

I tested the configuration shared by @Thomas Krichel
<krichel@???> which
is what was crafted by Dr. Andrew C Aitchison.
I still very much get these same errors with my list and surely don't know
what I am doing differently in my config.

A full debug run on a typical message is here:
https://pastebin.ubuntu.com/p/8ck5CDMCjF/

Hoping someone can see what is the issue.

--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)