Mercurial > masqmail
annotate tests/relay-to-localhost-mta/test.tpl @ 434:f2a7271746d1 default tip
Removes Freshmeat.net from the docs
The site, which was later renamed to freecode.com, is no longer
maintained (contains only a static copy).
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 07 Feb 2015 11:45:07 +0100 |
parents | 60bb2dbe2866 |
children |
rev | line source |
---|---|
64 | 1 #!/bin/sh |
63 | 2 |
64 | 3 # path to the masqmail executable |
63 | 4 mm_bin=../../src/masqmail |
5 | |
340
60bb2dbe2866
In the tests: replaced logname(1) with $LOGNAME
markus schnalke <meillo@marmaro.de>
parents:
64
diff
changeset
|
6 hfrom="\"Fritz Meier\" <$LOGNAME@RECV_HOST>" |
63 | 7 hto="$hfrom" |
340
60bb2dbe2866
In the tests: replaced logname(1) with $LOGNAME
markus schnalke <meillo@marmaro.de>
parents:
64
diff
changeset
|
8 to=$LOGNAME@RECV_HOST |
64 | 9 hsubject="Masqmail test: relay-to-localhost-mta" |
63 | 10 |
11 | |
12 # Testing with rcpt on cmd line | |
13 # (dot does end) | |
14 # | |
15 # the command to be run: | |
16 cmd="$mm_bin -C ./test.conf $to" | |
17 | |
18 $cmd <<EOF | |
19 From: $hfrom | |
20 To: $hto | |
21 Subject: $hsubject | |
22 | |
23 Hallo Fritz! | |
24 .. | |
25 there is a dot above (Yes, one and not two). | |
26 | |
27 command was: $cmd | |
28 | |
29 Fritz | |
30 . | |
31 | |
32 EOF | |
33 | |
64 | 34 |
63 | 35 # Testing with rcpt on cmd line with -oi option |
36 # (dot does not end) | |
37 # | |
38 # the command to be run: | |
39 cmd="$mm_bin -C ./test.conf -oi $to" | |
40 | |
41 $cmd <<EOF | |
42 From: $hfrom | |
43 To: $hto | |
44 Subject: $hsubject | |
45 | |
46 Hallo Fritz! | |
47 . | |
48 there is a dot above. | |
49 | |
50 command was: $cmd | |
51 | |
52 Fritz | |
53 | |
54 EOF | |
55 | |
64 | 56 |
63 | 57 # Testing with rcpt read from headers (-t option) |
58 # (dot does end) | |
59 # | |
60 # the command to be run: | |
61 cmd="$mm_bin -C ./test.conf -t" | |
62 | |
63 $cmd <<EOF | |
64 From: $hfrom | |
65 To: $hto | |
66 Subject: $hsubject | |
67 | |
68 Hallo Fritz! | |
69 .. | |
70 there is a dot above. | |
71 | |
72 command was: $cmd | |
73 | |
74 Fritz | |
75 . | |
76 | |
77 EOF |