[Eisfair] An Drucker gesendete Emails werden nicht mehr ausgedruckt

Marcus Röckrath marcus.roeckrath at gmx.de
So Dez 3 14:51:22 CET 2023


Hallo,

Marcus Röckrath wrote:

>>> 2023-11-27 21:08:51 1r7huW-0003RH-2V **
>>> usb... at fritz.box.lan <print/usb... at fritz.box.lan> R=print_route
>>> T=print_transport: Tainted arg 2 for print_transport transport command:
>>> 'bestel... at wiederladewelt24.com'
> 
> So: Ich habe mir auch mal mail2print installiert und es funktioniert hier
> mit gleicher Fehlermeldung nicht.
> 
> exim quittiert das dann mit einer Fehlermail mit dem Betreff
> 
> "Mail delivery failed: returning message to sender"
> 
> Dann mal Tante Google befragt, wo ich sehr schnell Treffer für das Problem
> gehabt habe, die zu sagen scheinen, dass es mit exim 4.96 eine Änderug
> gegeben hat, die man in der exim-Konfiguration für den print_transport
> machen müsste.

Aus

https://jimbobmcgee.wordpress.com/2020/07/29/de-tainting-exim-configuration-variables/

habe ich mal den Dirty Hack gemacht, womit mail2print dann sogar wieder 
funktioniert:

Make a lookup file on your system with only one value in it. That value is 
the literal * character (as in, an asterisk character). Allow your Exim 
daemon user to read it, and no-one else to write to it. Put it with your 
other Exim config files, for example:

~# echo '*' > /etc/exim/detaint
~# chmod 400 /etc/exim/detaint
~# chown exim:nobody /etc/exim/detaint

Und in /var/spool/exim/configure:

print_transport:
  driver  = pipe
  command = /usr/bin/mail2print -sender "${lookup{$sender_address} 
lsearch*,ret=key{/etc/exim/detaint}}" -queue "${lookup{$local_part} 
lsearch*,ret=key{/etc/exim/detaint}}"
  home_directory = /tmp
  user    = exim

Diese Änderung übersteht ein Update oder Konfiguration des Mailpaketes
nicht.

Wie gesagt, böser Hack, da er wohl Löcher aufreißen kann.

Also alles auf Jedermanns eigene Verantwortung.

-- 
Gruß Marcus
[eisfair-Team]


Mehr Informationen über die Mailingliste Eisfair