2aa86f45d226e39abe75ee047c2c046147da16f7
[exim.git] / test / scripts / 0000-Basic / 0568
1 # Recipient callout with AUTH
2 need_ipv4
3 #
4 # Variant 1: using authenticated_sender on the transport.
5 server PORT_S 1
6 220 Welcome
7 EHLO
8 250-wotcher mate
9 250-AUTH PLAIN
10 250 Hi
11 AUTH
12 250 Oh alright then
13 MAIL FROM
14 250 OK
15 RCPT TO
16 250 OK
17 QUIT
18 250 OK
19 ****
20 exim -odq -bs
21 EHLO the.client
22 mail from:<>
23 RCPT TO:<abc@force>
24 quit
25 ****
26 #
27 #
28 # Variant 2: Passing through an authenticated_sender from the MAIL FROM:
29 server PORT_S 1
30 220 Welcome
31 EHLO
32 250-wotcher mate
33 250-AUTH PLAIN
34 250 Hi
35 AUTH
36 250 Oh alright then
37 MAIL FROM
38 250 OK
39 RCPT TO
40 250 OK
41 QUIT
42 250 OK
43 ****
44 exim -odq -bs
45 EHLO the.client
46 AUTH PLAIN AHVzZXJ4AHNlY3JldA==
47 mail from:<> AUTH=freddy
48 RCPT TO:<abc@normal>
49 quit
50 ****
51 #
52 #
53 # Variant 3: An authenticated_sender option on the transport should override
54 # a value set by the MAIL FROM:
55 server PORT_S 1
56 220 Welcome
57 EHLO
58 250-wotcher mate
59 250-AUTH PLAIN
60 250 Hi
61 AUTH
62 250 Oh alright then
63 MAIL FROM
64 250 OK
65 RCPT TO
66 250 OK
67 QUIT
68 250 OK
69 ****
70 exim -odq -bs
71 EHLO the.client
72 AUTH PLAIN AHVzZXJ4AHNlY3JldA==
73 mail from:<> AUTH=freddy
74 RCPT TO:<def@force>
75 quit
76 ****