summaryrefslogtreecommitdiff
path: root/test/scripts/3400-plaintext
diff options
context:
space:
mode:
Diffstat (limited to 'test/scripts/3400-plaintext')
-rw-r--r--test/scripts/3400-plaintext/3400218
-rw-r--r--test/scripts/3400-plaintext/3401141
-rw-r--r--test/scripts/3400-plaintext/340213
-rw-r--r--test/scripts/3400-plaintext/340313
-rw-r--r--test/scripts/3400-plaintext/340473
-rw-r--r--test/scripts/3400-plaintext/340547
-rw-r--r--test/scripts/3400-plaintext/340621
-rw-r--r--test/scripts/3400-plaintext/34079
-rw-r--r--test/scripts/3400-plaintext/340823
-rw-r--r--test/scripts/3400-plaintext/340915
-rw-r--r--test/scripts/3400-plaintext/341030
-rw-r--r--test/scripts/3400-plaintext/341122
-rw-r--r--test/scripts/3400-plaintext/341224
-rw-r--r--test/scripts/3400-plaintext/341310
-rw-r--r--test/scripts/3400-plaintext/341438
-rw-r--r--test/scripts/3400-plaintext/3415127
-rw-r--r--test/scripts/3400-plaintext/REQUIRES1
17 files changed, 825 insertions, 0 deletions
diff --git a/test/scripts/3400-plaintext/3400 b/test/scripts/3400-plaintext/3400
new file mode 100644
index 000000000..b547a21b9
--- /dev/null
+++ b/test/scripts/3400-plaintext/3400
@@ -0,0 +1,218 @@
+# plaintext server tests
+exim -bh 10.0.0.2
+mail from:<junk@jink.jonk.test.ex>
+rset
+vrfy userx@test.ex
+expn list@test.ex
+etrn #abcd
+quit
+****
+exim -bh 10.0.0.1
+ehlo test.host
+vrfy userx@test.ex
+expn list@test.ex
+etrn abcd
+mail from:<junk@jink.jonk.test.ex>
+rcpt to:<userx@test.ex>
+noop
+rset
+auth mylogin dXNlcnggc2VjcmV0
+auth mylogin dXNlcnggc2VjcmV0
+mail from:<junk@jink.jonk.test.ex>
+rcpt to:<userx@test.ex>
+rcpt to:<userx@cus.cam.ac.uk>
+rset
+vrfy userx@test.ex
+expn list@test.ex
+etrn #abcd
+noop
+auth mylogin dXNlcnggc2VjcmV0
+quit
+****
+exim -bh 10.0.0.3
+ehlo test.host
+mail from:<junk@jink.jonk.test.ex>
+rcpt to:<userx@cus.cam.ac.uk>
+rset
+auth mylogin dXNlcnggc2VjcmV0
+mail from:<junk@jink.jonk.test.ex>
+rcpt to:<userx@cus.cam.ac.uk>
+quit
+****
+exim -odi -bs -oMa 10.0.0.3
+ehlo testclient.ex
+mail from:<userx@cus.cam.ac.uk>
+rcpt to:<userx@test.ex>
+data
+Testing unauthenticated.
+.
+mail from:<userx@cus.cam.ac.uk> auth=auth@cus.cam.ac.uk
+rcpt to:<userx@test.ex>
+data
+Testing unauthenticated (2).
+.
+auth mylogin dXNlcnggc2VjcmV0
+mail from:<userx@cus.cam.ac.uk>
+rcpt to:<userx@test.ex>
+data
+Testing authenticated.
+.
+mail from:<userx@cus.cam.ac.uk> auth=auth@cus.cam.ac.uk
+rcpt to:<userx@test.ex>
+data
+Testing authenticated (2).
+.
+mail from:<userx@cus.cam.ac.uk> auth=au+zzth@cus.cam.ac.uk
+rset
+mail from:<userx@cus.cam.ac.uk> auth=<>
+rcpt to:<userx@test.ex>
+data
+Testing authenticated (3).
+.
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+auth plain AHVzZXJ4AHNlY3JldA==
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+auth defer AHVzZXJ4AHNlY3JldA==
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+auth plain
+AHVzZXJ4AHNlY3JldA==
+quit
+****
+exim -odi -bs -oMa 10.0.0.1
+ehlo test.host
+AUTH LOGIN
+dXNlcng=
+c2VjcmV0
+mail from:<userx@cus.cam.ac.uk>
+rcpt to:<userx@test.ex>
+data
+Testing authenticated.
+.
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+AUTH LOGIN
+dXNlcngAc2VjcmV0
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+AUTH LOGIN dXNlcngAc2VjcmV0
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+AUTH LOGIN dXNlcng=
+c2VjcmV0
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+AUTH LOGIN
+dXNlcng=
+*
+quit
+****
+exim -bh 10.0.0.4
+ehlo test.host
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+auth plain AGVzZXJ4AHNlY3JldA==
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+auth explain
+AHVzZXJ4AHNlY3JldA==
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+auth expanded
+AHVzZXJ4AHNlY3JldA==
+quit
+****
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+auth expandfail
+AHVzZXJ4AHNlY3JldA==
+quit
+****
+exim -bs -oMa 10.0.0.2
+ehlo test.host
+auth expandfail
+AHVzZXJ4AHNlY3JldA==
+quit
+****
+1
+exim -bs -oMa 10.0.0.1
+ehlo test.host
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+auth expanded AHVzZXJ4AHNlY3JlVw==
+****
+exim -odi -bs -oMa 10.0.0.5
+ehlo testing.testing
+mail from:<x@y>
+rcpt to:<userx@test.ex>
+data
+Without authenticating
+.
+auth mylogin dXNlcnggc2VjcmV0
+mail from:<x@y>
+rcpt to:<userx@test.ex>
+data
+Authentication failed
+.
+auth mylogin dXNlcnggc2VjcmV0
+mail from:<x@y>
+rcpt to:<userx@test.ex>
+data
+Authentication succeeded
+.
+quit
+****
+exim -odi -bs -oMa 10.0.0.1
+ehlo test.host
+AUTH LOGIN
+
+c2VjcmV0
+quit
+****
+exim -d -odi -bs -oMa 10.0.0.5
+ehlo testing.testing
+auth mylogin dXNlcnggc2VjcmV0
+quit
+****
+no_msglog_check
diff --git a/test/scripts/3400-plaintext/3401 b/test/scripts/3400-plaintext/3401
new file mode 100644
index 000000000..b3e7c6a0a
--- /dev/null
+++ b/test/scripts/3400-plaintext/3401
@@ -0,0 +1,141 @@
+# plaintext client tests
+need_ipv4
+#
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH LOGIN
+AUTH LOGIN
+334 VXNlciBOYW1l
+dXNlcng
+334 UGFzc3dvcmQ=
+c2VjcmV0
+235 Authentication successful
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -odi userx@domain.com
+.
+****
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH PLAIN
+AUTH PLAIN AHVzZXJ4AHNlY3JldA==
+235 Authentication successful
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -odi userx@domain.com
+.
+****
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH PLAIN
+AUTH PLAIN AHVzZXJ4AHNlY3JldA==
+535 Sorry, authentication failed
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -odi userx@domain.com
+.
+****
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH LOGIN
+AUTH LOGIN
+****
+exim -odi userx@domain.com
+.
+****
+# Authentication required, but fails
+# Get rid of retry first
+sudo rm spool/db/*
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH PLAIN
+AUTH PLAIN AHVzZXJ4AHNlY3JldA==
+535 Sorry, authentication failed
+QUIT
+250 OK
+****
+exim -odi userx@authdomain.com
+.
+****
+# Authentication required, but not offered
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250 HELP
+QUIT
+250 OK
+****
+exim -odi userx@authdomain.com
+.
+****
+# Forced AUTH sender
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH LOGIN
+AUTH LOGIN
+334 VXNlciBOYW1l
+dXNlcng
+334 UGFzc3dvcmQ=
+c2VjcmV0
+235 Authentication successful
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -odi forcesender@domain.com
+.
+****
+no_msglog_check
diff --git a/test/scripts/3400-plaintext/3402 b/test/scripts/3400-plaintext/3402
new file mode 100644
index 000000000..c14066143
--- /dev/null
+++ b/test/scripts/3400-plaintext/3402
@@ -0,0 +1,13 @@
+# authentication (server_mail_auth_condition)
+exim -bs -oMa 10.0.0.2
+ehlo testing.ex
+auth plain AHVzZXJ4AHNlY3JldA==
+mail from:<userx@test.ex> AUTH=xyz@test.ex
+quit
+****
+exim -bs -oMa 10.0.0.2
+ehlo testing.ex
+auth plain AHVzZXJ5AGFiPw==
+mail from:<userx@test.ex> AUTH=xyz@test.ex
+quit
+****
diff --git a/test/scripts/3400-plaintext/3403 b/test/scripts/3400-plaintext/3403
new file mode 100644
index 000000000..98981fa36
--- /dev/null
+++ b/test/scripts/3400-plaintext/3403
@@ -0,0 +1,13 @@
+# authentication (preservation of $authenticated_id)
+exim -odi -bs -oMa 10.0.0.2
+ehlo testing.ex
+auth plain AHVzZXJ4CgBzZWNyZXQ=
+auth plain AHVzZXJ4AHNlY3JldA==
+mail from:<userx@test.ex>
+rcpt to:<userx@test.ex>
+data
+Test data
+.
+quit
+****
+no_msglog_check
diff --git a/test/scripts/3400-plaintext/3404 b/test/scripts/3400-plaintext/3404
new file mode 100644
index 000000000..98f737eac
--- /dev/null
+++ b/test/scripts/3400-plaintext/3404
@@ -0,0 +1,73 @@
+# -Mas -Mai (trusted caller); also -v and auth data
+need_ipv4
+#
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH PLAIN
+AUTH PLAIN AHVzZXJ4AHNlY3JldA==
+235 Authentication successful
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -v -odi userx@domain.com
+.
+****
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH PLAIN
+AUTH PLAIN AHVzZXJ4AHNlY3JldA==
+235 Authentication successful
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -v -oMas xxx@yyy -oMai zzz -odi userx@domain.com
+.
+****
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH LOGIN
+AUTH LOGIN
+300 User?
+dXNlcng=
+300 Password?
+c2VjcmV0
+235 Authentication successful
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -v -odi userx@domain.com
+.
+****
diff --git a/test/scripts/3400-plaintext/3405 b/test/scripts/3400-plaintext/3405
new file mode 100644
index 000000000..6312d1f40
--- /dev/null
+++ b/test/scripts/3400-plaintext/3405
@@ -0,0 +1,47 @@
+# -Mas -Mai (untrusted caller)
+need_ipv4
+#
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH PLAIN
+AUTH PLAIN AHVzZXJ4AHNlY3JldA==
+235 Authentication successful
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -odi userx@domain.com
+.
+****
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH PLAIN
+AUTH PLAIN AHVzZXJ4AHNlY3JldA==
+235 Authentication successful
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -oMas xxx@yyy -oMai zzz -odi userx@domain.com
+.
+****
diff --git a/test/scripts/3400-plaintext/3406 b/test/scripts/3400-plaintext/3406
new file mode 100644
index 000000000..ea61c88e9
--- /dev/null
+++ b/test/scripts/3400-plaintext/3406
@@ -0,0 +1,21 @@
+# server_advertise_condition
+exim -bs -oMa 10.0.0.2
+ehlo testing.ex
+auth first
+quit
+****
+exim -bs -oMa 10.0.0.3
+ehlo testing.ex
+auth first
+quit
+****
+exim -bs -oMa 10.0.0.2
+ehlo testing.ex
+auth second
+quit
+****
+exim -bs -oMa 10.0.0.3
+ehlo testing.ex
+auth second
+quit
+****
diff --git a/test/scripts/3400-plaintext/3407 b/test/scripts/3400-plaintext/3407
new file mode 100644
index 000000000..d42a22a74
--- /dev/null
+++ b/test/scripts/3400-plaintext/3407
@@ -0,0 +1,9 @@
+# diagnose duplicate authenticator methods
+1
+exim -bP authenticators
+****
+exim -DOPTION= -bP authenticators
+****
+1
+exim -DOPTION=client_send=zzz -bP authenticators
+****
diff --git a/test/scripts/3400-plaintext/3408 b/test/scripts/3400-plaintext/3408
new file mode 100644
index 000000000..25374a129
--- /dev/null
+++ b/test/scripts/3400-plaintext/3408
@@ -0,0 +1,23 @@
+# RBL blocking (postmaster exception, AUTH exception)
+exim -bh V4NET.11.12.14
+ehlo exim.test.ex
+mail from:postmaster@exim.test.ex
+rcpt to:<postmaster@exim.test.ex>
+rcpt to:userx@exim.test.ex
+data
+test data
+.
+quit
+****
+exim -bh V4NET.11.12.14
+ehlo exim.test.ex
+auth plain AHVzZXJ4AHNlY3JldA==
+mail from:postmaster@exim.test.ex
+rcpt to:<postmaster@exim.test.ex>
+rcpt to:userx@exim.test.ex
+data
+test data
+.
+quit
+****
+no_msglog_check
diff --git a/test/scripts/3400-plaintext/3409 b/test/scripts/3400-plaintext/3409
new file mode 100644
index 000000000..e719d1084
--- /dev/null
+++ b/test/scripts/3400-plaintext/3409
@@ -0,0 +1,15 @@
+# SMTP syntax errors logging
+exim -bs
+ehlo a.b.c
+auth a%b
+auth plain AHVzZXJ4AHNlY3JldA==
+auth plain AHVzZXJ4AHNlY3JldA==
+mail from:<x@y> auth=a+b@c.d
+quit
+****
+exim -bs
+ehlo a.b.c
+mail from:<x@y>
+auth plain AHVzZXJ4AHNlY3JldA==
+quit
+****
diff --git a/test/scripts/3400-plaintext/3410 b/test/scripts/3400-plaintext/3410
new file mode 100644
index 000000000..20b5e067c
--- /dev/null
+++ b/test/scripts/3400-plaintext/3410
@@ -0,0 +1,30 @@
+# ACL basic auth tests
+exim -bh 5.6.9.1
+mail from:<x@y>
+rcpt to:<x@y>
+rset
+ehlo rhu.barb
+auth PLAIN AHVzZXJ4AHNlY3JldA==
+mail from:<x@y>
+rcpt to:<x@y>
+quit
+****
+exim -bh 5.6.10.1
+mail from:<x@y>
+rcpt to:<x@y>
+rset
+ehlo rhu.barb
+auth PLAIN AHVzZXJ4AHNlY3JldA==
+mail from:<x@y>
+rcpt to:<x@y>
+quit
+****
+exim -bh 5.6.10.1
+ehlo rhu.barb
+auth LOGIN
+dXNlcng=
+c2VjcmV0
+mail from:<x@y>
+rcpt to:<x@y>
+quit
+****
diff --git a/test/scripts/3400-plaintext/3411 b/test/scripts/3400-plaintext/3411
new file mode 100644
index 000000000..bd8dc2738
--- /dev/null
+++ b/test/scripts/3400-plaintext/3411
@@ -0,0 +1,22 @@
+# ACL with a "standard" auth configuration
+#
+# Not a relay host, but authenticated, sender address does verify.
+# accept postmaster@test.ex (postmaster at local domain)
+# accept userx@test.ex (good address in local domain)
+# deny x@y (bad address)
+# accept x@ten-1.test.ex (good relay address)
+# accept x@ten-2.test.ex (good address, not relay domain/host, but authenticated)
+exim -odi -oMa 10.0.0.0 -bs
+ehlo rhu.barb
+auth PLAIN AHBoMTAAc2VjcmV0
+mail from:<userx@test.ex>
+rcpt to:<postmaster@test.ex>
+rcpt to:<userx@test.ex>
+rcpt to:<x@y>
+rcpt to:<x@ten-1.test.ex>
+rcpt to:<x@ten-2.test.ex>
+data
+Message 6
+.
+quit
+****
diff --git a/test/scripts/3400-plaintext/3412 b/test/scripts/3400-plaintext/3412
new file mode 100644
index 000000000..a551ad28c
--- /dev/null
+++ b/test/scripts/3400-plaintext/3412
@@ -0,0 +1,24 @@
+# bounce_sender_authentication
+need_ipv4
+#
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250-HELP
+250 AUTH PLAIN
+AUTH PLAIN
+254 Authentication OK
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -odi x@test.ex
+****
diff --git a/test/scripts/3400-plaintext/3413 b/test/scripts/3400-plaintext/3413
new file mode 100644
index 000000000..3737d23d2
--- /dev/null
+++ b/test/scripts/3400-plaintext/3413
@@ -0,0 +1,10 @@
+# smtp_accept_max_nonmail and failing auth
+1
+exim -bs
+ehlo x.y.z
+auth rhubarb
+auth rhubarb
+auth rhubarb
+auth rhubarb
+auth rhubarb
+****
diff --git a/test/scripts/3400-plaintext/3414 b/test/scripts/3400-plaintext/3414
new file mode 100644
index 000000000..37528f2ea
--- /dev/null
+++ b/test/scripts/3400-plaintext/3414
@@ -0,0 +1,38 @@
+# control of AUTH= on MAIL by ACL
+exim -DS=# -bs
+ehlo xxxx
+mail from:<a@b> auth=c@d
+quit
+****
+exim -bs
+ehlo xxxx
+mail from:<a@b> auth=c@d
+quit
+****
+exim -DACL=accept -bs
+ehlo xxxx
+mail from:<a@b> auth=c@d
+quit
+****
+# No acl_smtp_mailauth, but authenticated
+exim -DS=# -bs
+ehlo xxxx
+auth plain abcd
+mail from:<a@b> auth=c@d
+quit
+****
+# Authenticated but ACL rejects
+exim -bs
+ehlo xxxx
+auth plain abcd
+mail from:<a@b> auth=c@d
+quit
+****
+# ACL allows some only
+exim -DACL=acl1 -bs
+ehlo xxxx
+mail from:<a@b> auth=bad@bad
+rset
+mail from:<a@b> auth=ok@ok
+quit
+****
diff --git a/test/scripts/3400-plaintext/3415 b/test/scripts/3400-plaintext/3415
new file mode 100644
index 000000000..05c7f0ae2
--- /dev/null
+++ b/test/scripts/3400-plaintext/3415
@@ -0,0 +1,127 @@
+# control = submission with authentication
+need_ipv4
+#
+exim -DSERVER=server -bd -oX PORT_D
+****
+client 127.0.0.1 PORT_D
+??? 220
+ehlo rhu.barb
+??? 250-
+??? 250-
+??? 250-
+??? 250-
+??? 250
+auth plain AHVzZXJuYW1lAG15c2VjcmV0
+??? 235
+mail from:<a@y>
+??? 250
+rcpt to:<x@y>
+??? 250
+data
+??? 354
+.
+??? 250
+mail from:<>
+??? 250
+rcpt to:<x@y>
+??? 250
+data
+??? 354
+.
+??? 250
+quit
+??? 221
+****
+killdaemon
+# Wait for delivery process
+millisleep 500
+exim -DSERVER=server -DSUBMISSION_OPTIONS=/domain=another.domain -bd -oX PORT_D
+****
+client 127.0.0.1 PORT_D
+??? 220
+ehlo rhu.barb
+??? 250-
+??? 250-
+??? 250-
+??? 250-
+??? 250
+auth plain AHVzZXJuYW1lAG15c2VjcmV0
+??? 235
+mail from:<>
+??? 250
+rcpt to:<x@y>
+??? 250
+data
+??? 354
+.
+??? 250
+quit
+??? 221
+****
+killdaemon
+# Wait for delivery process
+millisleep 500
+exim -DSERVER=server -DSUBMISSION_OPTIONS=/domain= -DAUTH_ID_DOMAIN=@auth.id.domain -bd -oX PORT_D
+****
+client 127.0.0.1 PORT_D
+??? 220
+ehlo rhu.barb
+??? 250-
+??? 250-
+??? 250-
+??? 250-
+??? 250
+auth plain AHVzZXJuYW1lAG15c2VjcmV0
+??? 235
+mail from:<>
+??? 250
+rcpt to:<x@y>
+??? 250
+data
+??? 354
+.
+??? 250
+quit
+??? 221
+****
+killdaemon
+# Wait for delivery process
+millisleep 500
+exim -DSERVER=server -DSUBMISSION_OPTIONS=/domain= -DAUTH_ID_DOMAIN=@auth.id.domain -bd -oX PORT_D
+****
+client 127.0.0.1 PORT_D
+??? 220
+ehlo rhu.barb
+??? 250-
+??? 250-
+??? 250-
+??? 250-
+??? 250
+auth plain AHVzZXJuYW1lAG15c2VjcmV0
+??? 235
+mail from:<>
+??? 250
+rcpt to:<x@y>
+??? 250
+data
+??? 354
+From: abc@x.y.z
+.
+??? 250
+quit
+??? 221
+****
+killdaemon
+# Wait for delivery process
+millisleep 500
+exim -Mvh $msg1
+****
+exim -Mvh $msg2
+****
+exim -Mvh $msg3
+****
+exim -Mvh $msg4
+****
+exim -Mvh $msg5
+****
+no_msglog_check
diff --git a/test/scripts/3400-plaintext/REQUIRES b/test/scripts/3400-plaintext/REQUIRES
new file mode 100644
index 000000000..9690eb334
--- /dev/null
+++ b/test/scripts/3400-plaintext/REQUIRES
@@ -0,0 +1 @@
+authenticator plaintext