Re: [exim] Unable to send or receive mails, Tainted not permitted

2022-02-12 Thread necktwi via Exim-users
It failed with
2022-02-13 12:01:02 1nJ8PW-0003xM-O7 == neck...@ferryfair.com R=localuser 
T=local_delivery defer (-1): Expansion of "${lookup {$local_part} 
dsearch,ret=full {/home}{$value/.maildir}fail}" (file or directory name for 
local_delivery transport) failed: "lookup" failed and "fail” requested


> On 12-Feb-2022, at 6:29 PM, Jasen Betts via Exim-users  
> wrote:
> 
> On 2022-02-12, necktwi via Exim-users  wrote:
>> I fixed it by setting
>> directory = ${home}/.maildir
>> 
>> But I want it to work with
>> directory = /home/$local_part/.maildir
> 
> use something like this instead.
> 
> directory = ${lookup {$local_part} dsearch,ret=full 
> {/home}{$value/.maildir}fail}
> 
> 
> -- 
>  Jasen.
> 
> -- 
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] Unable to send or receive mails, Tainted not permitted

2022-02-12 Thread Jasen Betts via Exim-users
On 2022-02-12, necktwi via Exim-users  wrote:
> I fixed it by setting
> directory = ${home}/.maildir
>
> But I want it to work with
> directory = /home/$local_part/.maildir

use something like this instead.

directory = ${lookup {$local_part} dsearch,ret=full 
{/home}{$value/.maildir}fail}


-- 
  Jasen.

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] Unable to send or receive mails, Tainted not permitted

2022-02-12 Thread necktwi via Exim-users
I fixed it by setting
directory = ${home}/.maildir

But I want it to work with
directory = /home/$local_part/.maildir

Because I made username aliases with same UID in /etc/passwd which makes 
${home} resolve to original user instead of its alias

> On 11-Feb-2022, at 11:21 PM, Satya Gowtham Kudupudi 
>  wrote:
> 
> local_delivery:
>  driver = appendfile
> #  file = /var/mail/$local_part
>  directory = /home/$local_part/.maildir
>  maildir_format
>  maildir_use_size_file
>  delivery_date_add
>  envelope_to_add
>  return_path_add
>  group = mail
>  mode = 0660
> 
> Is configuration present in exam.conf; please tell me the modification I’ve 
> to do to avoid the “Tainted” error.
> 
>> On 11-Feb-2022, at 2:55 PM, Jeremy Harris via Exim-users 
>>  wrote:
>> 
>> On 11/02/2022 05:57, necktwi via Exim-users wrote:
>>> When I try to send a mail I get the following message in exim log and the 
>>> mail is not received by the receiver.
>>> 2022-02-11 11:21:03 1nEVHn-00011P-At == neck...@somedomain.com R=localuser 
>>> T=local_delivery defer (-1): Tainted '/home/necktwi/.maildir' (file or 
>>> directory name for local_delivery transport) not permitted
>>> How to fix it?
>> 
>> Your configuratino needs update so as to not use untrustworthy
>> information as a filename.  The docs have information on de-tainting;
>> start with the Concept Index.
>> 
>> http://exim.org/exim-html-current/doc/html/spec_html/ch-concept_index.html
>> -- 
>> Cheers,
>> Jeremy
>> 
>> -- 
>> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
>> ## Exim details at http://www.exim.org/
>> ## Please use the Wiki with this list - http://wiki.exim.org/
> 


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/