|
@@ -28,7 +28,7 @@ test -x $DAEMON || exit 0
|
28
|
28
|
. /lib/lsb/init-functions
|
29
|
29
|
|
30
|
30
|
# Default configuration
|
31
|
|
-SRS_DOMAIN=`[ ! -r /etc/mailname ] || cat /etc/mailname | cut -d. -f2-`
|
|
31
|
+SRS_DOMAIN=`postconf -h mydomain || true`
|
32
|
32
|
SRS_FORWARD_PORT=10001
|
33
|
33
|
SRS_REVERSE_PORT=10002
|
34
|
34
|
SRS_SECRET=/etc/@PROJECT_NAME@.secret
|
|
@@ -42,7 +42,7 @@ fi
|
42
|
42
|
|
43
|
43
|
POSTSRS_OPTS="-4 -f$SRS_FORWARD_PORT -r$SRS_REVERSE_PORT -d$SRS_DOMAIN -s$SRS_SECRET -u$RUN_AS -p$PIDFILE -D"
|
44
|
44
|
|
45
|
|
-test -r "$SRS_SECRET" || exit 0
|
|
45
|
+test -r "$SRS_SECRET" -a -n "$SRS_DOMAIN" || exit 0
|
46
|
46
|
|
47
|
47
|
ret=0
|
48
|
48
|
case "$1" in
|