annotate tests/relay-to-hostname-mta/test.tpl @ 222:8cddc65765bd

added support for STARTTLS wrappers added the route config option `instant_helo' which causes masqmail, as SMTP client, not to wait for the server's 220 greeting. Instead if says EHLO right at once. You'll need this for STARTTLS wrappers that usually eat the greeting line.
author meillo@marmaro.de
date Fri, 23 Jul 2010 10:57:53 +0200
parents 0379789a847b
children 60bb2dbe2866
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
64
0379789a847b improved comments in test cases
meillo@marmaro.de
parents: 63
diff changeset
1 #!/bin/sh
63
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
2
64
0379789a847b improved comments in test cases
meillo@marmaro.de
parents: 63
diff changeset
3 # path to the masqmail executable
63
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
4 mm_bin=../../src/masqmail
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
5
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
6 hfrom="\"Fritz Meier\" <`logname`@RECV_HOST>"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
7 hto="$hfrom"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
8 to=`logname`@RECV_HOST
64
0379789a847b improved comments in test cases
meillo@marmaro.de
parents: 63
diff changeset
9 hsubject="Masqmail test: relay-to-hostname-mta"
63
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
10
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
11
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
12 # Testing with rcpt on cmd line
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
13 # (dot does end)
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
14 #
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
15 # the command to be run:
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
16 cmd="$mm_bin -C ./test.conf $to"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
17
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
18 $cmd <<EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
19 From: $hfrom
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
20 To: $hto
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
21 Subject: $hsubject
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
22
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
23 Hallo Fritz!
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
24 ..
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
25 there is a dot above (Yes, one and not two).
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
26
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
27 command was: $cmd
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
28
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
29 Fritz
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
30 .
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
31
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
32 EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
33
64
0379789a847b improved comments in test cases
meillo@marmaro.de
parents: 63
diff changeset
34
63
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
35 # Testing with rcpt on cmd line with -oi option
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
36 # (dot does not end)
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
37 #
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
38 # the command to be run:
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
39 cmd="$mm_bin -C ./test.conf -oi $to"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
40
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
41 $cmd <<EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
42 From: $hfrom
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
43 To: $hto
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
44 Subject: $hsubject
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
45
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
46 Hallo Fritz!
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
47 .
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
48 there is a dot above.
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
49
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
50 command was: $cmd
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
51
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
52 Fritz
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
53
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
54 EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
55
64
0379789a847b improved comments in test cases
meillo@marmaro.de
parents: 63
diff changeset
56
63
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
57 # Testing with rcpt read from headers (-t option)
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
58 # (dot does end)
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
59 #
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
60 # the command to be run:
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
61 cmd="$mm_bin -C ./test.conf -t"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
62
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
63 $cmd <<EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
64 From: $hfrom
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
65 To: $hto
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
66 Subject: $hsubject
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
67
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
68 Hallo Fritz!
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
69 ..
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
70 there is a dot above.
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
71
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
72 command was: $cmd
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
73
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
74 Fritz
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
75 .
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
76
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
77 EOF