Testsuite: avoid assuming 127.0.0.2 is a viable sending address
[exim.git] / test / scripts / 4000-scanning / 4009
CommitLineData
c5f280e2 1# content scan interface: spamassassin
8a512ed5 2#
35deab6a
JH
3# The spooled file for scanning includes the test-runner's user name
4# hence size varies. Munge that.
5munge scanfile_size
6#
7#
8a512ed5
JH
8# A good-comms test, returning not-spam.
9# (we could use a second one that returns is-spam...)
c5f280e2
AL
10server 7833
11<REPORT SPAMC
12<User:
13<Content-length:
14<
15<From
16<X-Envelope-From
17<X-Envelope-To
18<Received:
19< by
20< (envelope
21< id
22< for
23<Content-type: text/plain
24<Message-Id:
25<From:
26<Date:
27<
28<test
29>SPAMD/1.1 0 EX_OK
30>Spam: False ; 4.5 / 5.0
31>
32>Spam detection software, running on the system "demo",
33>has NOT identified this incoming email as spam. The original
34>message has been attached to this so you can view it or label
35>similar future email. If you have any questions, see
36>@@CONTACT_ADDRESS@@ for details.
37>
38>Content preview: test [...]
39>
40>Content analysis details: (4.5 points, 5.0 required)
41>
42> pts rule name description
43>---- ---------------------- --------------------------------------------------
44>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
45> 1.2 MISSING_HEADERS Missing To: header
46> 1.0 MISSING_FROM Missing From: header
47> 1.8 MISSING_SUBJECT Missing Subject: header
48> 1.4 MISSING_DATE Missing Date: header
49> 0.1 MISSING_MID Missing Message-Id: header
50>
51*eof
52****
53exim -odi -bs
54ehlo test.ex
55mail from:<>
56rcpt to:<userx@test.ex>
57data
58Content-type: text/plain
59
60test
61.
62quit
63****
8a512ed5
JH
64#
65#
66#
67#
68# Server spec line with timeout option, not exercised
69# (could we cut down the massive content?)
70server 7833
71<REPORT SPAMC
72<User:
73<Content-length:
74<
75<From
76<X-Envelope-From
77<X-Envelope-To
78<Received:
79< by
80< (envelope
81< id
82< for
83<Content-type: text/plain
84<Message-Id:
85<From:
86<Date:
87<
88<test
89>SPAMD/1.1 0 EX_OK
90>Spam: False ; 4.5 / 5.0
91>
92>Spam detection software, running on the system "demo",
93>has NOT identified this incoming email as spam. The original
94>message has been attached to this so you can view it or label
95>similar future email. If you have any questions, see
96>@@CONTACT_ADDRESS@@ for details.
97>
98>Content preview: test [...]
99>
100>Content analysis details: (4.5 points, 5.0 required)
101>
102> pts rule name description
103>---- ---------------------- --------------------------------------------------
104>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
105> 1.2 MISSING_HEADERS Missing To: header
106> 1.0 MISSING_FROM Missing From: header
107> 1.8 MISSING_SUBJECT Missing Subject: header
108> 1.4 MISSING_DATE Missing Date: header
109> 0.1 MISSING_MID Missing Message-Id: header
110>
111*eof
112****
dc7b3d36 113exim -odi -bs -DOPT='127.0.0.1 7833 retry=10s'
8a512ed5
JH
114ehlo test.ex
115mail from:<>
116rcpt to:<userx@test.ex>
117data
118Content-type: text/plain
119
120test
121.
122quit
123****
124#
125#
126#
127# Server spec line with timeout option, exercised
128server -i 2 7833
129<REPORT SPAMC
130<User:
131<Content-length:
132<
133<From
134<X-Envelope-From
135<X-Envelope-To
136<Received:
137< by
138< (envelope
139< id
140< for
141<Content-type: text/plain
142<Message-Id:
143<From:
144<Date:
145<
146<test
147>SPAMD/1.1 0 EX_OK
148>Spam: False ; 4.5 / 5.0
149>
150>Spam detection software, running on the system "demo",
151>has NOT identified this incoming email as spam. The original
152>message has been attached to this so you can view it or label
153>similar future email. If you have any questions, see
154>@@CONTACT_ADDRESS@@ for details.
155>
156>Content preview: test [...]
157>
158>Content analysis details: (4.5 points, 5.0 required)
159>
160> pts rule name description
161>---- ---------------------- --------------------------------------------------
162>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
163> 1.2 MISSING_HEADERS Missing To: header
164> 1.0 MISSING_FROM Missing From: header
165> 1.8 MISSING_SUBJECT Missing Subject: header
166> 1.4 MISSING_DATE Missing Date: header
167> 0.1 MISSING_MID Missing Message-Id: header
168>
169*eof
170****
dc7b3d36
JH
171exim -odi -bs -DOPT='127.0.0.1 7833 retry=4s'
172ehlo test.ex
173mail from:<>
174rcpt to:<userx@test.ex>
175data
176Content-type: text/plain
177
178test
179.
180quit
181****
182#
183#
184#
185# Multiple servers, prioritised, with timeout spec; first one fails
186# List separator changed
187server 7833
188<REPORT SPAMC
189<User:
190<Content-length:
191<
192<From
193<X-Envelope-From
194<X-Envelope-To
195<Received:
196< by
197< (envelope
198< id
199< for
200<Content-type: text/plain
201<Message-Id:
202<From:
203<Date:
204<
205<test
206>SPAMD/1.1 0 EX_OK
207>Spam: False ; 4.5 / 5.0
208>
209>Spam detection software, running on the system "demo",
210>has NOT identified this incoming email as spam. The original
211>message has been attached to this so you can view it or label
212>similar future email. If you have any questions, see
213>@@CONTACT_ADDRESS@@ for details.
214>
215>Content preview: test [...]
216>
217>Content analysis details: (4.5 points, 5.0 required)
218>
219> pts rule name description
220>---- ---------------------- --------------------------------------------------
221>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
222> 1.2 MISSING_HEADERS Missing To: header
223> 1.0 MISSING_FROM Missing From: header
224> 1.8 MISSING_SUBJECT Missing Subject: header
225> 1.4 MISSING_DATE Missing Date: header
226> 0.1 MISSING_MID Missing Message-Id: header
227>
228*eof
229****
78ca7fd5 230exim -odi -bs -DOPT='<; 127.0.0.1 7833 ; HOSTIPV4 7834 pri=2 tmo=2s'
8a512ed5
JH
231ehlo test.ex
232mail from:<>
233rcpt to:<userx@test.ex>
234data
235Content-type: text/plain
236
237test
238.
239quit
240****
241#
242#