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