diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-02-15 16:50:27 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-02-15 16:50:27 +0000 |
commit | dc7b3d368017727e9438fc7463b0841df1e4aa41 (patch) | |
tree | 80f3c212b14e3d1036315e859636f1643dc6b366 /test | |
parent | 6c54be6459b83b955fbd2fd6d6a844f80c98427a (diff) |
SpamAssassin: replace "backup" option on server spec with "pri=<N>". Bug 670
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/4009 | 4 | ||||
-rw-r--r-- | test/log/4009 | 5 | ||||
-rw-r--r-- | test/scripts/4000-scanning/4009 | 63 | ||||
-rw-r--r-- | test/stdout/4009 | 55 |
4 files changed, 123 insertions, 4 deletions
diff --git a/test/confs/4009 b/test/confs/4009 index 573aa6a4a..2799575ea 100644 --- a/test/confs/4009 +++ b/test/confs/4009 @@ -1,7 +1,7 @@ # Exim test configuration 4009 # Content-scan: spamassassin interface -OPT= +OPT= 127.0.0.1 7833 exim_path = EXIM_PATH host_lookup_order = bydns @@ -12,7 +12,7 @@ gecos_pattern = "" gecos_name = CALLER_NAME log_selector = +subject -spamd_address = 127.0.0.1 7833 OPT +spamd_address = OPT # ----- Main settings ----- diff --git a/test/log/4009 b/test/log/4009 index 4522ddb43..612744e20 100644 --- a/test/log/4009 +++ b/test/log/4009 @@ -10,3 +10,8 @@ 1999-03-02 09:44:33 10HmaZ-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss 1999-03-02 09:44:33 10HmaZ-0005vi-00 => :blackhole: <userx@test.ex> R=r 1999-03-02 09:44:33 10HmaZ-0005vi-00 Completed +1999-03-02 09:44:33 10HmbA-0005vi-00 spam acl condition: spamd: failed to connect to any address for ::1: Connection refused +1999-03-02 09:44:33 10HmbA-0005vi-00 U=CALLER Warning: no action Spam detection software, running on the system "demo",\n has NOT identified this incoming email as spam. The original\n message has been attached to this so you can view it or label\n similar future email. If you have any questions, see\n @@CONTACT_ADDRESS@@ for details.\n \n Content preview: test [...]\n \n Content analysis details: (4.5 points, 5.0 required)\n \n pts rule name description\n ---- ---------------------- --------------------------------------------------\n -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP\n 1.2 MISSING_HEADERS Missing To: header\n 1.0 MISSING_FROM Missing From: header\n 1.8 MISSING_SUBJECT Missing Subject: header\n 1.4 MISSING_DATE Missing Date: header\n 0.1 MISSING_MID Missing Message-Id: header +1999-03-02 09:44:33 10HmbA-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss +1999-03-02 09:44:33 10HmbA-0005vi-00 => :blackhole: <userx@test.ex> R=r +1999-03-02 09:44:33 10HmbA-0005vi-00 Completed diff --git a/test/scripts/4000-scanning/4009 b/test/scripts/4000-scanning/4009 index 4c2ab81c6..50f5ff990 100644 --- a/test/scripts/4000-scanning/4009 +++ b/test/scripts/4000-scanning/4009 @@ -105,7 +105,7 @@ server 7833 > *eof **** -exim -odi -bs -DOPT='retry=10s' +exim -odi -bs -DOPT='127.0.0.1 7833 retry=10s' ehlo test.ex mail from:<> rcpt to:<userx@test.ex> @@ -163,7 +163,66 @@ server -i 2 7833 > *eof **** -exim -odi -bs -DOPT='retry=4s' +exim -odi -bs -DOPT='127.0.0.1 7833 retry=4s' +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Content-type: text/plain + +test +. +quit +**** +# +# +# +# Multiple servers, prioritised, with timeout spec; first one fails +# List separator changed +server 7833 +<REPORT SPAMC +<User: +<Content-length: +< +<From +<X-Envelope-From +<X-Envelope-To +<Received: +< by +< (envelope +< id +< for +<Content-type: text/plain +<Message-Id: +<From: +<Date: +< +<test +>SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> +*eof +**** +exim -odi -bs -DOPT='<; 127.0.0.1 7833 ; ::1 7834 pri=2 tmo=2s' ehlo test.ex mail from:<> rcpt to:<userx@test.ex> diff --git a/test/stdout/4009 b/test/stdout/4009 index 9220c7d0e..cdc767781 100644 --- a/test/stdout/4009 +++ b/test/stdout/4009 @@ -31,6 +31,17 @@ 354 Enter message, ending with "." on a line by itself
250 OK id=10HmaZ-0005vi-00
221 myhost.test.ex closing connection
+220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello CALLER at test.ex
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250 HELP
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmbA-0005vi-00
+221 myhost.test.ex closing connection
******** SERVER ******** Listening on port 7833 ... @@ -166,3 +177,47 @@ Connection request from [127.0.0.1] > Expected EOF read from client End of script +Listening on port 7833 ... +Connection request from [127.0.0.1] +<REPORT SPAMC/1.2 +<User: nobody +<Content-length: 479 +< +<From MAILER-DAEMON Tue Mar 02 09:44:33 1999 +<X-Envelope-From: <CALLER@myhost.test.ex> +<X-Envelope-To: userx@test.ex +<Received: from CALLER (helo=test.ex) +< by myhost.test.ex with local-esmtp (Exim x.yz) +< (envelope-from <CALLER@myhost.test.ex>) +< id 10HmbA-0005vi-00 +< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +<Content-type: text/plain +<Message-Id: <E10HmbA-0005vi-00@myhost.test.ex> +<From: CALLER_NAME <CALLER@myhost.test.ex> +<Date: Tue, 2 Mar 1999 09:44:33 +0000 +< +<test +>SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> +Expected EOF read from client +End of script |