masqmail

annotate tests/relay-to-hostname-mta/test.tpl @ 421:f37384470855

Changed lockdir to /var/lock/masqmail; Create lockdir and piddir on startup. Moved the lockdir out of the spool dir. (When /var/lock is a ramdisk we do well to have the lock files there.) Added the new configure option --with-lockdir to change that location. Nontheless, if we run_as_user, then lock files are always stored in the spool dir directly. Instead of installing the lockdir and piddir at installation time, we create them on startup time now if they are missing. This is necessary if lockdir or piddir are a tmpfs.
author markus schnalke <meillo@marmaro.de>
date Wed, 30 May 2012 09:38:38 +0200
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-hostname-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