masqmail
view tests/localhost-stdin/test @ 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 | 49ca781e1503 |
children | 60bb2dbe2866 |
line source
1 #!/bin/sh
3 # path to the masqmail executable
4 mm_bin=../../src/masqmail
7 hfrom="\"Fritz Meier\" <`logname`@localhost>"
8 hto=$hfrom
9 to=`logname`@localhost
10 hsubject="Masqmail test: localhost-stdin"
13 # Testing with rcpt on cmd line
14 # (dot does end)
15 #
16 # the command to be run:
17 cmd="$mm_bin -C ./test.conf $to"
19 $cmd <<EOF
20 From: $hfrom
21 To: $hto
22 Subject: $hsubject
24 Hallo Fritz!
25 ..
26 there is a dot above (Yes, one and not two).
28 command was: $cmd
30 Fritz
31 .
33 EOF
36 # Testing with rcpt on cmd line with -oi option
37 # (dot does not end)
38 #
39 # the command to be run:
40 cmd="$mm_bin -C ./test.conf -oi $to"
42 $cmd <<EOF
43 From: $hfrom
44 To: $hto
45 Subject: $hsubject
47 Hallo Fritz!
48 .
49 there is a dot above.
51 command was: $cmd
53 Fritz
55 EOF
58 # Testing with rcpt read from headers (-t option)
59 # (dot does end)
60 #
61 # the command to be run:
62 cmd="$mm_bin -C ./test.conf -t"
64 $cmd <<EOF
65 From: $hfrom
66 To: $hto
67 Subject: $hsubject
69 Hallo Fritz!
70 ..
71 there is a dot above.
73 command was: $cmd
75 Fritz
76 .
78 EOF