Re: [exim] Exim 4.94 Taint issues

Top Page
Delete this message
Reply to this message
Author: Andrew C Aitchison
Date:  
To: The Doctor
CC: exim-users, freebsd-ports
Subject: Re: [exim] Exim 4.94 Taint issues
On Fri, 17 Jul 2020, The Doctor via Exim-users wrote:

> Trying Exim 4.94 and I am getting
>
>
> 2020-07-17 19:28:04.818 [8344] 1jwbdQ-00023D-Cx == doctor@??? R=localuser T=local_delivery defer (-1) DT=0.001s: Tainted '/var/mail/doctor' (file or directory name for local_delivery transport) not permitted
> 2020-07-17 19:28:05.074 [8355] 1jwbcO-0001zD-9p == doctor@??? R=localuser T=local_delivery defer (-1) DT=0.001s: Tainted '/var/mail/doctor' (file or directory name for local_delivery transport) not permitted
> 2020-07-17 19:28:05.081 [8357] 1jwbdm-00026Z-H4 == doctor@??? R=localuser T=local_delivery defer (-1) DT=0.001s: Tainted '/var/mail/doctor' (file or directory name for local_delivery transport) not permitted
> 2020-07-17 19:28:08.197 [8458] 1jwbd9-00022l-JD == doctor@??? R=localuser T=local_delivery defer (-1) DT=0.001s: Tainted '/var/mail/doctor' (file or directory name for local_delivery transport) not permitted
> 2020-07-17 19:28:09.012 [8483] 1jwbX9-000P9k-BE == gawlaan@??? R=localuser T=local_delivery defer (-1) DT=0.001s: Tainted '/var/mail/gawlaan' (file or directory name for local_delivery transport) not permitted

              ...                 ...

> Why is this happening?


and later:

> If this the fact that the mail directory is set to chmod 1777 ?


I worry about any directory that is world-writable,
but that is probably not the cause of *this* problem.

Without seeing *at least* the local_delivery section of your config
it is hard to say what needs changing, but possibly you need to change
      file = /var/mail/$local_part
to
      file = /var/mail/$local_part_data


-- 
Andrew C. Aitchison                    Kendal, UK
             andrew@???