Track tainted data and refuse to expand it
[exim.git] / test / stderr / 0544
1 Exim version x.yz ....
2 configuration file is TESTSUITE/test-config
3 admin user
4  ╭considering: ${tod_full}
5  ├──expanding: ${tod_full}
6  ╰─────result: Tue, 2 Mar 1999 09:44:33 +0000
7  ╭considering: Received: ${if def:sender_rcvhost {from $sender_rcvhost
8         }{${if def:sender_ident {from ${quote_local_part:$sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)
9         }}}}by $primary_hostname ${if def:received_protocol {with $received_protocol }}${if def:tls_in_cipher_std { tls $tls_in_cipher_std
10         }}(Exim $version_number)
11         ${if def:sender_address {(envelope-from <$sender_address>)
12         }}id $message_exim_id${if def:received_for {
13         for $received_for}}
14  ├──condition: def:sender_rcvhost
15  ├─────result: false
16   ╭───scanning: from $sender_rcvhost
17         }{${if def:sender_ident {from ${quote_local_part:$sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)
18         }}}}by $primary_hostname ${if def:received_protocol {with $received_protocol }}${if def:tls_in_cipher_std { tls $tls_in_cipher_std
19         }}(Exim $version_number)
20         ${if def:sender_address {(envelope-from <$sender_address>)
21         }}id $message_exim_id${if def:received_for {
22         for $received_for}}
23   ├──expanding: from $sender_rcvhost
24         
25   ├─────result: from 
26         
27   ╰───skipping: result is not used
28   ╭considering: ${if def:sender_ident {from ${quote_local_part:$sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)
29         }}}}by $primary_hostname ${if def:received_protocol {with $received_protocol }}${if def:tls_in_cipher_std { tls $tls_in_cipher_std
30         }}(Exim $version_number)
31         ${if def:sender_address {(envelope-from <$sender_address>)
32         }}id $message_exim_id${if def:received_for {
33         for $received_for}}
34   ├──condition: def:sender_ident
35   ├─────result: true
36    ╭considering: from ${quote_local_part:$sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)
37         }}}}by $primary_hostname ${if def:received_protocol {with $received_protocol }}${if def:tls_in_cipher_std { tls $tls_in_cipher_std
38         }}(Exim $version_number)
39         ${if def:sender_address {(envelope-from <$sender_address>)
40         }}id $message_exim_id${if def:received_for {
41         for $received_for}}
42    ╎╭considering: $sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)
43    ╎  }}}}by $primary_hostname ${if def:received_protocol {with $received_protocol }}${if def:tls_in_cipher_std { tls $tls_in_cipher_std
44    ╎  }}(Exim $version_number)
45    ╎  ${if def:sender_address {(envelope-from <$sender_address>)
46    ╎  }}id $message_exim_id${if def:received_for {
47    ╎  for $received_for}}
48    ╎├──expanding: $sender_ident
49    ╎╰─────result: CALLER
50    ├──expanding: from ${quote_local_part:$sender_ident} 
51    ╰─────result: from CALLER 
52   ├──condition: def:sender_helo_name
53   ├─────result: false
54    ╭───scanning: (helo=$sender_helo_name)
55         }}}}by $primary_hostname ${if def:received_protocol {with $received_protocol }}${if def:tls_in_cipher_std { tls $tls_in_cipher_std
56         }}(Exim $version_number)
57         ${if def:sender_address {(envelope-from <$sender_address>)
58         }}id $message_exim_id${if def:received_for {
59         for $received_for}}
60    ├──expanding: (helo=$sender_helo_name)
61         
62    ├─────result: (helo=)
63         
64    ╰───skipping: result is not used
65   ├──expanding: ${if def:sender_ident {from ${quote_local_part:$sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)
66         }}
67   ╰─────result: from CALLER 
68  ├──condition: def:received_protocol
69  ├─────result: true
70   ╭considering: with $received_protocol }}${if def:tls_in_cipher_std { tls $tls_in_cipher_std
71         }}(Exim $version_number)
72         ${if def:sender_address {(envelope-from <$sender_address>)
73         }}id $message_exim_id${if def:received_for {
74         for $received_for}}
75   ├──expanding: with $received_protocol 
76   ╰─────result: with local 
77  ├──condition: def:tls_in_cipher_std
78  ├─────result: false
79   ╭───scanning:  tls $tls_in_cipher_std
80         }}(Exim $version_number)
81         ${if def:sender_address {(envelope-from <$sender_address>)
82         }}id $message_exim_id${if def:received_for {
83         for $received_for}}
84   ├──expanding:  tls $tls_in_cipher_std
85         
86   ├─────result:  tls 
87         
88   ╰───skipping: result is not used
89  ├──condition: def:sender_address
90  ├─────result: true
91   ╭considering: (envelope-from <$sender_address>)
92         }}id $message_exim_id${if def:received_for {
93         for $received_for}}
94   ├──expanding: (envelope-from <$sender_address>)
95         
96   ╰─────result: (envelope-from <CALLER@test.ex>)
97         
98  ├──condition: def:received_for
99  ├─────result: false
100   ╭───scanning: 
101         for $received_for}}
102   ├──expanding: 
103         for $received_for
104   ├─────result: 
105         for 
106   ╰───skipping: result is not used
107  ├──expanding: Received: ${if def:sender_rcvhost {from $sender_rcvhost
108         }{${if def:sender_ident {from ${quote_local_part:$sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)
109         }}}}by $primary_hostname ${if def:received_protocol {with $received_protocol }}${if def:tls_in_cipher_std { tls $tls_in_cipher_std
110         }}(Exim $version_number)
111         ${if def:sender_address {(envelope-from <$sender_address>)
112         }}id $message_exim_id${if def:received_for {
113         for $received_for}}
114  ╰─────result: Received: from CALLER by the.local.host.name with local (Exim x.yz)
115         (envelope-from <CALLER@test.ex>)
116         id 10HmaX-0005vi-00
117  ╭considering: ${tod_full}
118  ├──expanding: ${tod_full}
119  ╰─────result: Tue, 2 Mar 1999 09:44:33 +0000
120 LOG: MAIN
121   <= CALLER@test.ex U=CALLER P=local S=sss
122 created log directory TESTSUITE/spool/log
123 Exim version x.yz ....
124 configuration file is TESTSUITE/test-config
125 trusted user
126 admin user
127 dropping to exim gid; retaining priv uid
128  ╭considering: $domain
129  ├──expanding: $domain
130  ╰─────result: domain1.ex
131             ╰──(tainted)
132 LOG: MAIN
133   == userx@domain1.ex R=smarthost T=smtp defer (-1): domain matches queue_smtp_domains, or -odqs set
134 LOG: MAIN
135   == userx@domain2.ex R=smarthost T=smtp defer (-1): domain matches queue_smtp_domains, or -odqs set
136  ╭considering: ${if or {{ !eq{$h_list-id:$h_list-post:$h_list-subscribe:}{} }{ match{$h_precedence:}{(?i)bulk|list|junk} }{ match{$h_auto-submitted:}{(?i)auto-generated|auto-replied} }} {no}{yes}}
137   ╭considering: $h_list-id:$h_list-post:$h_list-subscribe:}{} }{ match{$h_precedence:}{(?i)bulk|list|junk} }{ match{$h_auto-submitted:}{(?i)auto-generated|auto-replied} }} {no}{yes}}
138   ├──expanding: $h_list-id:$h_list-post:$h_list-subscribe:
139   ╰─────result: 
140   ╭considering: } }{ match{$h_precedence:}{(?i)bulk|list|junk} }{ match{$h_auto-submitted:}{(?i)auto-generated|auto-replied} }} {no}{yes}}
141   ├──expanding: 
142   ╰─────result: 
143   ╭considering: $h_precedence:}{(?i)bulk|list|junk} }{ match{$h_auto-submitted:}{(?i)auto-generated|auto-replied} }} {no}{yes}}
144   ├──expanding: $h_precedence:
145   ╰─────result: 
146   ╭considering: (?i)bulk|list|junk} }{ match{$h_auto-submitted:}{(?i)auto-generated|auto-replied} }} {no}{yes}}
147   ├──expanding: (?i)bulk|list|junk
148   ╰─────result: (?i)bulk|list|junk
149   ╭considering: $h_auto-submitted:}{(?i)auto-generated|auto-replied} }} {no}{yes}}
150   ├──expanding: $h_auto-submitted:
151   ╰─────result: 
152   ╭considering: (?i)auto-generated|auto-replied} }} {no}{yes}}
153   ├──expanding: (?i)auto-generated|auto-replied
154   ╰─────result: (?i)auto-generated|auto-replied
155  ├──condition: or {{ !eq{$h_list-id:$h_list-post:$h_list-subscribe:}{} }{ match{$h_precedence:}{(?i)bulk|list|junk} }{ match{$h_auto-submitted:}{(?i)auto-generated|auto-replied} }}
156  ├─────result: false
157   ╭───scanning: no}{yes}}
158   ├──expanding: no
159   ├─────result: no
160   ╰───skipping: result is not used
161   ╭considering: yes}}
162   ├──expanding: yes
163   ╰─────result: yes
164  ├──expanding: ${if or {{ !eq{$h_list-id:$h_list-post:$h_list-subscribe:}{} }{ match{$h_precedence:}{(?i)bulk|list|junk} }{ match{$h_auto-submitted:}{(?i)auto-generated|auto-replied} }} {no}{yes}}
165  ╰─────result: yes
166 >>>>>>>>>>>>>>>> Exim pid=pppp (main) terminating with rc=0 >>>>>>>>>>>>>>>>
167 >>>>>>>>>>>>>>>> Exim pid=pppp (main) terminating with rc=0 >>>>>>>>>>>>>>>>
168 Exim version x.yz ....
169 configuration file is TESTSUITE/test-config
170 admin user
171 LOG: smtp_connection MAIN
172   SMTP connection from CALLER
173  ╭considering: $smtp_active_hostname ESMTP Exim $version_number $tod_full
174  ├──expanding: $smtp_active_hostname ESMTP Exim $version_number $tod_full
175  ╰─────result: the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
176  ╭considering: ${if match_domain {$sender_helo_name}{+dlist}}
177   ╭considering: $sender_helo_name}{+dlist}}
178   ├──expanding: $sender_helo_name
179   ╰─────result: ehlo.domain
180              ╰──(tainted)
181   ╭considering: +dlist}}
182   ├──expanding: +dlist
183   ╰─────result: +dlist
184   ╭considering: $domain
185   ├──expanding: $domain
186   ╰─────result: ehlo.domain
187              ╰──(tainted)
188  ├──condition: match_domain {$sender_helo_name}{+dlist}
189  ├─────result: true
190  ├──expanding: ${if match_domain {$sender_helo_name}{+dlist}}
191  ╰─────result: true
192  ╭considering: domain=$domain/sender_domain=$sender_address_domain
193  ├──expanding: domain=$domain/sender_domain=$sender_address_domain
194  ╰─────result: domain=/sender_domain=sender.domain
195             ╰──(tainted)
196  ╭considering: domain=$domain/sender_domain=$sender_address_domain
197  ├──expanding: domain=$domain/sender_domain=$sender_address_domain
198  ╰─────result: domain=recipient.domain/sender_domain=sender.domain
199             ╰──(tainted)
200  ╭considering: domain=$domain/sender_domain=$sender_address_domain
201  ├──expanding: domain=$domain/sender_domain=$sender_address_domain
202  ╰─────result: domain=recipient.domain/sender_domain=sender.domain
203             ╰──(tainted)
204 LOG: smtp_connection MAIN
205   SMTP connection from CALLER closed by QUIT
206 >>>>>>>>>>>>>>>> Exim pid=pppp (msg setup toplevel) terminating with rc=0 >>>>>>>>>>>>>>>>