{
uschar * errstr;
- debug_printf("trying server %s\n", sd->hostspec);
+ DEBUG(D_acl) debug_printf("spamd: trying server %s\n", sd->hostspec);
for (;;)
{
|| sd->retry <= 0
)
break;
- debug_printf("server %s: retry conn\n", sd->hostspec);
+ DEBUG(D_acl) debug_printf("sspamd: erver %s: retry conn\n", sd->hostspec);
while (sd->retry > 0) sd->retry = sleep(sd->retry);
}
if (spamd_sock >= 0)
const uschar * authid;
req_str = string_sprintf("CHECK RSPAMC/1.3\r\nContent-length: %lu\r\n"
- "Queue-Id: %s\r\nFrom: <%s>\r\nRecipient-Number: %d\r\n", mbox_size,
- message_id, sender_address, recipients_count);
+ "Queue-Id: %s\r\nFrom: <%s>\r\nRecipient-Number: %d\r\n",
+ mbox_size, message_id, sender_address, recipients_count);
for (i = 0; i < recipients_count; i ++)
req_str = string_sprintf("%sRcpt: <%s>\r\n", req_str, recipients_list[i].address);
if ((helo = expand_string(US"$sender_helo_name")) != NULL && *helo != '\0')
'loopback' =>
{ 'stdout' => 's/[[](127\.0\.0\.1|::1)]/[IP_LOOPBACK_ADDR]/' },
+ 'scanfile_size' =>
+ { 'stdout' => 's/(Content-length:) \d\d\d/$1 ddd/' },
+
};
# content scan interface: rspamd
+#
+# The spooled file for scanning includes the test-runner's user name
+# hence size varies. Munge that.
+munge scanfile_size
+#
server 11333
<CHECK RSPAMC/1.3\r
<Content-length:
< (envelope
< id
< for
+<From:
<Content-type: text/plain
<Message-Id:
-<From:
+<Sender:
<Date:
<
<test
mail from:<>
rcpt to:<userx@test.ex>
data
+From: MAILER_DAEMON <>
Content-type: text/plain
test
# content scan interface: spamassassin
#
+# The spooled file for scanning includes the test-runner's user name
+# hence size varies. Munge that.
+munge scanfile_size
+#
+#
# A good-comms test, returning not-spam.
# (we could use a second one that returns is-spam...)
server 7833
Listening on port 11333 ...
Connection request from [127.0.0.1]
<CHECK RSPAMC/1.3
-<Content-length: 479
+<Content-length: ddd
<Queue-Id: 10HmaX-0005vi-00
<From: <CALLER@myhost.test.ex>
<Recipient-Number: 1
< (envelope-from <CALLER@myhost.test.ex>)
< id 10HmaX-0005vi-00
< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000
+<From: MAILER_DAEMON <>
<Content-type: text/plain
<Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
-<From: CALLER_NAME <CALLER@myhost.test.ex>
+<Sender: CALLER_NAME <CALLER@myhost.test.ex>
<Date: Tue, 2 Mar 1999 09:44:33 +0000
<
<test
Connection request from [127.0.0.1]
<REPORT SPAMC/1.2
<User: nobody
-<Content-length: 479
+<Content-length: ddd
<
<From MAILER-DAEMON Tue Mar 02 09:44:33 1999
<X-Envelope-From: <CALLER@myhost.test.ex>
Connection request from [127.0.0.1]
<REPORT SPAMC/1.2
<User: nobody
-<Content-length: 479
+<Content-length: ddd
<
<From MAILER-DAEMON Tue Mar 02 09:44:33 1999
<X-Envelope-From: <CALLER@myhost.test.ex>
Connection request from [127.0.0.1]
<REPORT SPAMC/1.2
<User: nobody
-<Content-length: 479
+<Content-length: ddd
<
<From MAILER-DAEMON Tue Mar 02 09:44:33 1999
<X-Envelope-From: <CALLER@myhost.test.ex>
Connection request from [127.0.0.1]
<REPORT SPAMC/1.2
<User: nobody
-<Content-length: 479
+<Content-length: ddd
<
<From MAILER-DAEMON Tue Mar 02 09:44:33 1999
<X-Envelope-From: <CALLER@myhost.test.ex>