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