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