masqmail
annotate tests/relay-to-localhost-mta/test.tpl @ 281:ea5f86e0a81c
modes are now enforced exclusive
Other MTAs (exim, postfix) are more relaxing, but as combinations
of exclusive modes are senseless we behave more obvious if we
fail early. This makes understanding the behavior easier too.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 07 Dec 2010 14:04:56 -0300 |
parents | 49ca781e1503 |
children | 60bb2dbe2866 |
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@63 | 6 hfrom="\"Fritz Meier\" <`logname`@RECV_HOST>" |
meillo@63 | 7 hto="$hfrom" |
meillo@63 | 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 |