Commit | Line | Data |
---|---|---|
bfe645c1 JH |
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 | < | |
4fab92fb | 15 | <From |
bfe645c1 JH |
16 | <X-Envelope-From |
17 | <X-Envelope-To | |
4fab92fb HSHR |
18 | <Received: |
19 | < by | |
bfe645c1 | 20 | < (envelope |
4fab92fb HSHR |
21 | < id |
22 | < for | |
bfe645c1 JH |
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 | > | |
4fab92fb | 38 | >Content preview: test [...] |
bfe645c1 JH |
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 | **** | |
4fab92fb | 53 | exim -odi -oMt fromuser -bs |
bfe645c1 | 54 | ehlo test.ex |
4fab92fb | 55 | mail from:<fromuser@myhost.test.ex> |
bfe645c1 JH |
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 | < | |
4fab92fb | 75 | <From |
bfe645c1 JH |
76 | <X-Envelope-From |
77 | <X-Envelope-To | |
4fab92fb HSHR |
78 | <Received: |
79 | < by | |
bfe645c1 | 80 | < (envelope |
4fab92fb HSHR |
81 | < id |
82 | < for | |
bfe645c1 JH |
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 | > | |
4fab92fb | 98 | >Content preview: test [...] |
bfe645c1 JH |
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 | **** | |
4fab92fb | 113 | exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=10s' |
bfe645c1 | 114 | ehlo test.ex |
4fab92fb | 115 | mail from:<fromuser@myhost.test.ex> |
bfe645c1 JH |
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 | < | |
4fab92fb | 133 | <From |
bfe645c1 JH |
134 | <X-Envelope-From |
135 | <X-Envelope-To | |
4fab92fb HSHR |
136 | <Received: |
137 | < by | |
bfe645c1 | 138 | < (envelope |
4fab92fb HSHR |
139 | < id |
140 | < for | |
bfe645c1 JH |
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 | > | |
4fab92fb | 156 | >Content preview: test [...] |
bfe645c1 JH |
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 | **** | |
4fab92fb | 171 | exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=4s' |
bfe645c1 | 172 | ehlo test.ex |
4fab92fb | 173 | mail from:<fromuser@myhost.test.ex> |
bfe645c1 JH |
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 | < | |
4fab92fb | 192 | <From |
bfe645c1 JH |
193 | <X-Envelope-From |
194 | <X-Envelope-To | |
4fab92fb HSHR |
195 | <Received: |
196 | < by | |
bfe645c1 | 197 | < (envelope |
4fab92fb HSHR |
198 | < id |
199 | < for | |
bfe645c1 JH |
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 | > | |
4fab92fb | 215 | >Content preview: test [...] |
bfe645c1 JH |
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 | **** | |
4fab92fb | 230 | exim -odi -oMt fromuser -bs -DOPT='<; 127.0.0.1 7833 ; HOSTIPV4 7834 pri=2 tmo=2s' |
bfe645c1 | 231 | ehlo test.ex |
4fab92fb | 232 | mail from:<fromuser@myhost.test.ex> |
bfe645c1 JH |
233 | rcpt to:<userx@test.ex> |
234 | data | |
235 | Content-type: text/plain | |
236 | ||
237 | test | |
238 | . | |
239 | quit | |
240 | **** | |
241 | # | |
242 | # |