Docs: fix more uses of $local_part in examples
[users/heiko/exim.git] / test / scripts / 4000-scanning / 4003
1 # content scan interface: spamassassin
2 #
3 # The spooled file for scanning includes the test-runner's user name
4 # hence size varies.  Munge that.
5 munge scanfile_size
6 #
7 #
8 # A good-comms test, returning not-spam.
9 # (we could use a second one that returns is-spam...)
10 server 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 ****
53 exim -odi -oMt fromuser -bs
54 ehlo test.ex
55 mail from:<fromuser@myhost.test.ex>
56 rcpt to:<userx@test.ex>
57 data
58 Content-type: text/plain
59
60 test
61 .
62 quit
63 ****
64 #
65 #
66 #
67 #
68 # Server spec line with timeout option, not exercised
69 # (could we cut down the massive content?)
70 server 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 ****
113 exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=10s'
114 ehlo test.ex
115 mail from:<fromuser@myhost.test.ex>
116 rcpt to:<userx@test.ex>
117 data
118 Content-type: text/plain
119
120 test
121 .
122 quit
123 ****
124 #
125 #
126 #
127 # Server spec line with timeout option, exercised
128 server -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 ****
171 exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=4s'
172 ehlo test.ex
173 mail from:<fromuser@myhost.test.ex>
174 rcpt to:<userx@test.ex>
175 data
176 Content-type: text/plain
177
178 test
179 .
180 quit
181 ****
182 #
183 #
184 #
185 # Multiple servers, prioritised, with timeout spec; first one fails
186 # List separator changed
187 server 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 ****
230 exim -odi -oMt fromuser -bs -DOPT='<; 127.0.0.1 7833 ; HOSTIPV4 7834 pri=2 tmo=2s'
231 ehlo test.ex
232 mail from:<fromuser@myhost.test.ex>
233 rcpt to:<userx@test.ex>
234 data
235 Content-type: text/plain
236
237 test
238 .
239 quit
240 ****
241 #
242 #