diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2023-03-16 15:49:59 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2023-03-16 17:04:28 +0000 |
commit | 3607e3e00236f6039b765882edd0200dff6a31fc (patch) | |
tree | d90143e887fa2a2bdbd5ed96287e97871d765184 /test | |
parent | 3af9f77fb401fe0e77a46a88415c6e45ed1a47bf (diff) |
Limit expanded References header to RFC max size. Bug 2827
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0032 | 27 | ||||
-rw-r--r-- | test/mail/0032.CALLER | 3 |
2 files changed, 29 insertions, 1 deletions
diff --git a/test/confs/0032 b/test/confs/0032 index 8af551b0c..df02a034a 100644 --- a/test/confs/0032 +++ b/test/confs/0032 @@ -9,6 +9,33 @@ primary_hostname = myhost.ex dsn_from = MailProgram <xyz@some.where> +acl_not_smtp = add_insane_refs + + +# ----- ACL ----- + +begin acl + +# Put an overlong refs header on the message-to-be-bounced, so we can check the +# bounce has a sane header + +add_insane_refs: + warn !senders = : + add_header = References: \ + <0.ZERO.78901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.ONE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.TWO.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.THREE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.FOUR.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.FIVE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.SIX.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.SEVEN.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.EIGHT.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.NINE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.TEN.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.ELEVEN.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> \ + <0.TWELVE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> + accept # ----- Routers ----- diff --git a/test/mail/0032.CALLER b/test/mail/0032.CALLER index ef3e2dde6..76aa97c73 100644 --- a/test/mail/0032.CALLER +++ b/test/mail/0032.CALLER @@ -10,7 +10,7 @@ X-Failed-Recipients: userx@mxt1.test.ex Auto-Submitted: auto-replied From: MailProgram <xyz@some.where> To: CALLER@myhost.ex -References: <E10HmaX-0005vi-00@myhost.ex> +References: <0.ZERO.78901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.SIX.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.SEVEN.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.EIGHT.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.NINE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.TEN.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.ELEVEN.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.TWELVE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <E10HmaX-0005vi-00@myhost.ex> Content-Type: multipart/report; report-type=delivery-status; boundary=NNNNNNNNNN-eximdsn-MMMMMMMMMM MIME-Version: 1.0 Subject: Mail delivery failed: returning message to sender @@ -49,6 +49,7 @@ Received: from CALLER by myhost.ex with local (Exim x.yz) Message-Id: <E10HmaX-0005vi-00@myhost.ex> From: CALLER_NAME <CALLER@myhost.ex> Date: Tue, 2 Mar 1999 09:44:33 +0000 +References: <0.ZERO.78901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.ONE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.TWO.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.THREE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.FOUR.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.FIVE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.SIX.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.SEVEN.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.EIGHT.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.NINE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.TEN.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.ELEVEN.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> <0.TWELVE.678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678@f.net> This is a test message. |