summaryrefslogtreecommitdiff
path: root/test-postmap.sh
blob: ceee206fa85660032a71d8b8fc99e6c259092206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

test_postmap () {
  echo -n "get $1, port 2244:"
  postmap -v -q $1 tcp:localhost:2244 2>&1 |grep recv:
  echo -n "get $1, port 4242:"
  postmap -v -q $1 tcp:localhost:4242 2>&1 |grep recv:
  echo
}

test_postmap dummy
test_postmap dummy@dev.bitmask.net
test_postmap dummy@nowhe.re

test_postmap nobody
test_postmap nobody@dev.bitmask.net
test_postmap nobody@nowhe.re