Add $smtp_command_history variable
[exim.git] / test / stderr / 0021
... / ...
CommitLineData
1Exim version x.yz ....
2configuration file is TESTSUITE/test-config
3trusted user
4admin user
5host in hosts_connection_nolog? no (option unset)
6LOG: smtp_connection MAIN
7 SMTP connection from CALLER
8host in host_lookup? no (option unset)
9host in host_reject_connection? no (option unset)
10host in sender_unqualified_hosts? no (option unset)
11host in recipient_unqualified_hosts? no (option unset)
12host in helo_verify_hosts? no (option unset)
13host in helo_try_verify_hosts? no (option unset)
14host in helo_accept_junk_hosts? no (option unset)
15using ACL "connect"
16processing "deny"
17check hosts = : 10.9.8.7
18host in ": 10.9.8.7"? no (end of list)
19deny: condition test failed in ACL "connect"
20processing "drop"
21l_message: forcibly dropped
22check hosts = 10.9.8.9
23host in "10.9.8.9"? no (end of list)
24drop: condition test failed in ACL "connect"
25processing "accept"
26check logwrite = $sender_host_address accepted by connect ACL
27 = 10.9.8.8 accepted by connect ACL
28LOG: MAIN
29 10.9.8.8 accepted by connect ACL
30accept: condition test succeeded in ACL "connect"
31end of ACL "connect": ACCEPT
32using ACL "mail"
33processing "warn"
34 message: added header line
35check senders = ok@test3
36address match test: subject=bad@test1 pattern=ok@test3
37bad@test1 in "ok@test3"? no (end of list)
38warn: condition test failed in ACL "mail"
39processing "accept"
40check senders = ok@test1 : ok@test3
41address match test: subject=bad@test1 pattern=ok@test1
42address match test: subject=bad@test1 pattern=ok@test3
43bad@test1 in "ok@test1 : ok@test3"? no (end of list)
44accept: condition test failed in ACL "mail"
45end of ACL "mail": implicit DENY
46LOG: MAIN REJECT
47 H=[10.9.8.8] U=CALLER rejected MAIL <bad@test1>
48using ACL "mail"
49processing "warn"
50 message: added header line
51check senders = ok@test3
52address match test: subject=ok@test1 pattern=ok@test3
53test1 in "test3"? no (end of list)
54ok@test1 in "ok@test3"? no (end of list)
55warn: condition test failed in ACL "mail"
56processing "accept"
57check senders = ok@test1 : ok@test3
58address match test: subject=ok@test1 pattern=ok@test1
59test1 in "test1"? yes (matched "test1")
60ok@test1 in "ok@test1 : ok@test3"? yes (matched "ok@test1")
61check verify = sender
62ok in "!bad"? yes (end of list)
63----------- end verify ------------
64sender ok@test1 verified ok
65check logwrite = :main,reject: mail accepted "$smtp_command" "$smtp_command_argument"
66 = :main,reject: mail accepted "mail from:<ok@test1>" "<ok@test1>"
67LOG: MAIN REJECT
68 mail accepted "mail from:<ok@test1>" "<ok@test1>"
69accept: condition test succeeded in ACL "mail"
70end of ACL "mail": ACCEPT
71using ACL "rcpt"
72processing "accept"
73check senders = +ok_senders
74address match test: subject=ok@test1 pattern=ok@somewhere
75test1 in "somewhere"? no (end of list)
76address match test: subject=ok@test1 pattern=ok@test1
77test1 in "test1"? yes (matched "test1")
78ok@test1 in "ok@somewhere : ok@test1 : ok@test3"? yes (matched "ok@test1")
79ok@test1 in "+ok_senders"? yes (matched "+ok_senders")
80check sender_domains = +ok_sender_domains
81test1 in "somewhere : test1 : test3"? yes (matched "test1")
82test1 in "+ok_sender_domains"? yes (matched "+ok_sender_domains")
83check logwrite = :panic: rcpt accepted C=$smtp_command_history
84 = :panic: rcpt accepted C=MAIL,MAIL,RCPT
85LOG: PANIC
86 rcpt accepted C=MAIL,MAIL,RCPT
87accept: condition test succeeded in ACL "rcpt"
88end of ACL "rcpt": ACCEPT
89using ACL "rcpt"
90processing "accept"
91check senders = +ok_senders
92cached yes match for +ok_senders
93cached lookup data = NULL
94ok@test1 in "+ok_senders"? yes (matched "+ok_senders" - cached)
95check sender_domains = +ok_sender_domains
96cached yes match for +ok_sender_domains
97test1 in "+ok_sender_domains"? yes (matched "+ok_sender_domains" - cached)
98check logwrite = :panic: rcpt accepted C=$smtp_command_history
99 = :panic: rcpt accepted C=MAIL,MAIL,RCPT,RCPT
100LOG: PANIC
101 rcpt accepted C=MAIL,MAIL,RCPT,RCPT
102accept: condition test succeeded in ACL "rcpt"
103end of ACL "rcpt": ACCEPT
104LOG: smtp_connection MAIN
105 SMTP connection from CALLER closed by QUIT
106>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>>
1071999-03-02 09:44:33 ACL "warn" with "message" setting found in a non-message (EHLO or HELO) ACL: cannot specify header lines here: message ignored
108Exim version x.yz ....
109configuration file is TESTSUITE/test-config
110trusted user
111admin user
112host in hosts_connection_nolog? no (option unset)
113LOG: smtp_connection MAIN
114 SMTP connection from CALLER
115host in host_lookup? no (option unset)
116host in host_reject_connection? no (option unset)
117host in sender_unqualified_hosts? no (option unset)
118host in recipient_unqualified_hosts? no (option unset)
119host in helo_verify_hosts? no (option unset)
120host in helo_try_verify_hosts? no (option unset)
121host in helo_accept_junk_hosts? no (option unset)
122using ACL "connect"
123processing "deny"
124check hosts = : 10.9.8.7
125host in ": 10.9.8.7"? no (end of list)
126deny: condition test failed in ACL "connect"
127processing "drop"
128l_message: forcibly dropped
129check hosts = 10.9.8.9
130host in "10.9.8.9"? no (end of list)
131drop: condition test failed in ACL "connect"
132processing "accept"
133check logwrite = $sender_host_address accepted by connect ACL
134 = 10.9.8.8 accepted by connect ACL
135LOG: MAIN
136 10.9.8.8 accepted by connect ACL
137accept: condition test succeeded in ACL "connect"
138end of ACL "connect": ACCEPT
139using ACL "mail"
140processing "warn"
141 message: added header line
142check senders = ok@test3
143address match test: subject=ok@test3 pattern=ok@test3
144test3 in "test3"? yes (matched "test3")
145ok@test3 in "ok@test3"? yes (matched "ok@test3")
146warn: condition test succeeded in ACL "mail"
147processing "accept"
148check senders = ok@test1 : ok@test3
149address match test: subject=ok@test3 pattern=ok@test1
150test3 in "test1"? no (end of list)
151address match test: subject=ok@test3 pattern=ok@test3
152test3 in "test3"? yes (matched "test3")
153ok@test3 in "ok@test1 : ok@test3"? yes (matched "ok@test3")
154check verify = sender
155ok in "!bad"? yes (end of list)
156----------- end verify ------------
157sender ok@test3 verified ok
158check logwrite = :main,reject: mail accepted "$smtp_command" "$smtp_command_argument"
159 = :main,reject: mail accepted "mail from:<ok@test3>" "<ok@test3>"
160LOG: MAIN REJECT
161 mail accepted "mail from:<ok@test3>" "<ok@test3>"
162accept: condition test succeeded in ACL "mail"
163end of ACL "mail": ACCEPT
164using ACL "rcpt"
165processing "accept"
166check senders = +ok_senders
167address match test: subject=ok@test3 pattern=ok@somewhere
168test3 in "somewhere"? no (end of list)
169address match test: subject=ok@test3 pattern=ok@test1
170test3 in "test1"? no (end of list)
171address match test: subject=ok@test3 pattern=ok@test3
172test3 in "test3"? yes (matched "test3")
173ok@test3 in "ok@somewhere : ok@test1 : ok@test3"? yes (matched "ok@test3")
174ok@test3 in "+ok_senders"? yes (matched "+ok_senders")
175check sender_domains = +ok_sender_domains
176test3 in "somewhere : test1 : test3"? yes (matched "test3")
177test3 in "+ok_sender_domains"? yes (matched "+ok_sender_domains")
178check logwrite = :panic: rcpt accepted C=$smtp_command_history
179 = :panic: rcpt accepted C=MAIL,RCPT
180LOG: PANIC
181 rcpt accepted C=MAIL,RCPT
182accept: condition test succeeded in ACL "rcpt"
183end of ACL "rcpt": ACCEPT
184>>Headers added by MAIL or RCPT ACL:
185 X-ACL-Warn: added header line
186>>
187LOG: MAIN
188 <= ok@test3 H=[10.9.8.8] U=CALLER P=smtp S=sss
189Exim version x.yz ....
190configuration file is TESTSUITE/test-config
191trusted user
192admin user
193x in "!bad"? yes (end of list)
194LOG: MAIN
195 => x <x@y> R=accept T=appendfile
196LOG: MAIN
197 Completed
198>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>>
199LOG: smtp_connection MAIN
200 SMTP connection from CALLER closed by QUIT
201>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>>
2021999-03-02 09:44:33 ACL "warn" with "message" setting found in a non-message (EHLO or HELO) ACL: cannot specify header lines here: message ignored
2031999-03-02 09:44:33 rcpt accepted C=EHLO,MAIL,RCPT