public inbox for mlmmj@mlmmj.org
 help / color / mirror / Atom feed
* [mlmmj] README.exim4 broken, needs update
@ 2023-12-07 22:29 Florian Berger
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Berger @ 2023-12-07 22:29 UTC (permalink / raw)
  To: mlmmj; +Cc: webmaster

The mlmmj.org website hosts a tutorial for exim 4 setup at http://mlmmj.org/docs/readme-exim4/ , 
which in turn refers to https://plonk.de/sw/mlmmj/README.exim4 as the most recent original (hence 
author Jakob Hirsch in cc:).

For the transport configuration, it advertises:

mlmmj_transport:
   [irrelevant lines left out]
   command = /usr/local/bin/mlmmj-recieve -F -L MLMMJ_HOME/${lc:$local_part}

This will no longer work in recent versions of exim (4.94 and above). exim now considers 
sender-derived data tainted, and will refuse to use them as-is. See

- https://git.exim.org/exim.git/blob/HEAD:/src/README.UPDATING
- https://www.exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html

As far as the mlmmj config is concerned, $local_part is considered tainted.

It can reasonably be de-tainted by changing it into a directory lookup:

mlmmj_transport:
   [unchanged lines left out]
   command = /usr/bin/mlmmj-receive -F -L "${lookup {$local_part} dsearch,ret=full {MLMMJ_HOME}}"

To avoind exim users running into issues, the tutorial at plonk.de and mlmmj.org should be updated 
accordingly.


Thanks for considering,

Florian



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [mlmmj] README.exim4 broken, needs update
       [not found] <df58ab7f-0592-4055-b5cd-3769fa210edc>
@ 2026-03-06  9:16 ` wulf
  0 siblings, 0 replies; 2+ messages in thread
From: wulf @ 2026-03-06  9:16 UTC (permalink / raw)
  To: mlmmj


Ahoi,

> The mlmmj.org website hosts a tutorial for exim 4 setup at
> http://mlmmj.org/docs/readme-exim4/

thanks to Florian for the dsearch syntax

I added multi-domain handling and debug Output

  you still need uniq user_parts
    info@list1.org
    info@list2.org
  will not work


Git comment
  Date:   Fri Mar 6 09:40:23 2026 +0100

  Update exim4 configuration hints
    - add debug output to router and transport
    - lookup changes according
        exim4 >= 4.94 taind behaver
      (Errors like "Tainted filename for search")
    - add router condition for setups with more than one domain (you need uniq
      local_parts over all your lists, but we do not want to match the transport on
      local_part@wrong.domain)

  hint
    - VERP config is not changed/updated, may not work


changed exim4 Readme
  https://codeberg.org/mlmmj/mlmmj/src/commit/690feb17265dc589f9b5275834dd76e251b47625/README.exim4.md

pull-request
  https://codeberg.org/mlmmj/mlmmj/pulls/88


Thanks for mlmmj
Grenouille



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-06 10:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <df58ab7f-0592-4055-b5cd-3769fa210edc>
2026-03-06  9:16 ` [mlmmj] README.exim4 broken, needs update wulf
2023-12-07 22:29 Florian Berger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox