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

Página Inicial
Delete this message
Reply to this message
Autor: Satya Gowtham Kudupudi
Data:  
Para: Jasen Betts, Jeremy Harris
CC: exim users
Assunto: Re: [exim] Unable to send or receive mails, Tainted not permitted
Yeah the /home/necktwi is missing; after doing `ln -s /home/Necktwi /home/necktwi` it worked.

```
$ sudo exim -d+expand+lookup -be '${lookup {necktwi} dsearch,ret=full {/home}{$value/.maildir}fail}'
Exim version 4.94.2 uid=0 gid=0 pid=29454 D=f7715dfd
Support for: crypteq iconv() IPv6 PAM OpenSSL DANE DKIM DNSSEC Event OCSP PIPE_CONNECT PRDR TCP_Fast_Open
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch ldap ldapdn ldapm passwd
Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply pipe smtp
Fixed never_users: 0
Configure owner: 0:0
Size of off_t: 8
Compiler: GCC [10.3.0]
Library version: BDB: Compile: Berkeley DB 5.3.28: (September  9, 2013)
                      Runtime: Berkeley DB 5.3.28: (September  9, 2013)
Library version: OpenSSL: Compile: OpenSSL 1.1.1l  24 Aug 2021
                          Runtime: OpenSSL 1.1.1l  24 Aug 2021
                                 : built on: Sun Jan 16 13:29:37 2022 UTC
Library version: Cyrus SASL: Compile: 2.1.27
                             Runtime: 2.1.27 [Cyrus SASL]
Library version: PCRE: Compile: 8.45
                       Runtime: 8.45 2021-06-15
Total 15 lookups
WHITELIST_D_MACROS unset
TRUSTED_CONFIG_LIST unset
changed uid/gid: -C, -D, -be or -bf forces real uid
  uid=0 gid=0 pid=29454
  auxiliary group list: 0 1 2 3 4 6 10 11 26 27
openssl option, adding to     42004000: 00000000 (no_sslv2 +no_sslv3)
openssl option, adding to     42004000: 02000000 (no_sslv3)
LANGUAGE in keep_environment? no (end of list)
LC_ADDRESS in keep_environment? no (end of list)
LC_NAME in keep_environment? no (end of list)
LC_MONETARY in keep_environment? no (end of list)
LC_PAPER in keep_environment? no (end of list)
LANG in keep_environment? no (end of list)
LS_COLORS in keep_environment? no (end of list)
LC_IDENTIFICATION in keep_environment? no (end of list)
TERM in keep_environment? no (end of list)
LC_TELEPHONE in keep_environment? no (end of list)
LC_MESSAGES in keep_environment? no (end of list)
LC_MEASUREMENT in keep_environment? no (end of list)
LC_CTYPE in keep_environment? no (end of list)
LC_TIME in keep_environment? no (end of list)
LC_ALL in keep_environment? no (end of list)
LC_COLLATE in keep_environment? no (end of list)
PATH in keep_environment? no (end of list)
LC_NUMERIC in keep_environment? no (end of list)
MAIL in keep_environment? no (end of list)
LOGNAME in keep_environment? no (end of list)
USER in keep_environment? no (end of list)
HOME in keep_environment? no (end of list)
SHELL in keep_environment? no (end of list)
SUDO_COMMAND in keep_environment? no (end of list)
SUDO_USER in keep_environment? no (end of list)
SUDO_UID in keep_environment? no (end of list)
SUDO_GID in keep_environment? no (end of list)
configuration file is /etc/exim/exim.conf
log selectors = 0000fffc 79005022 00000003
trusted user
admin user
dropping to exim gid; retaining priv uid
originator: uid=0 gid=0 login=root name=root
sender address = root@???
 ╭considering: ${lookup {necktwi} dsearch,ret=full {/home}{$value/.maildir}fail}
  ╭considering: necktwi} dsearch,ret=full {/home}{$value/.maildir}fail}
  ├──expanding: necktwi
  ╰─────result: necktwi
  ╭considering: /home}{$value/.maildir}fail}
  ├──expanding: /home
  ╰─────result: /home
 search_open: dsearch "/home"
 search_find: file="/home"
   key="necktwi" partial=-1 affix=NULL starflags=0 opts="ret=full"
 LRU list:
   5/home
   End
 internal_search_find: file="/home"
   type=dsearch key="necktwi" opts="ret=full"
 file lookup required for necktwi
   in /home
 lookup yielded: /home/necktwi
  ╭considering: $value/.maildir}fail}
  ├──expanding: $value/.maildir
  ╰─────result: /home/necktwi/.maildir
 ├──expanding: ${lookup {necktwi} dsearch,ret=full {/home}{$value/.maildir}fail}
 ╰─────result: /home/necktwi/.maildir
/home/necktwi/.maildir
search_tidyup called

>>>>>>>>>>>>>>>> Exim pid=29454 (fresh-exec) terminating with rc=0 >>>>>>>>>>>>>>>>

```

> On 14-Feb-2022, at 2:14 AM, Jasen Betts via Exim-users <exim-users@???> wrote:
>
> The directory must be present beforehand
>
> On 2022-02-13, necktwi via Exim-users <exim-users@???> wrote:
>> It failed with
>> 2022-02-13 12:01:02 1nJ8PW-0003xM-O7 == necktwi@??? 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 <exim-users@???> wrote:
>>>
>>> On 2022-02-12, necktwi via Exim-users <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/
>>
>>
>
>
> --
> 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/