blob: 62021b494981579a45afab072b530029add66c58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
DOMAIN=$(hostname -d)
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@$DOMAIN
test_postmap dummy@nowhe.re
test_postmap fooooo
test_postmap fooooo@$DOMAIN
test_postmap fooooo@nowhe.re
|