chiark / gitweb /
bsmtp-pull: Use a special-purpose ssh identity.
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Fri, 25 Oct 2002 12:08:32 +0000 (12:08 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Fri, 25 Oct 2002 12:08:32 +0000 (12:08 +0000)
bsmtp-pull

index 5a2c474..2c7e7b9 100755 (executable)
@@ -23,7 +23,7 @@ lockfile-touch "$HOST" &
 TOUCH="$!"
 trap 'kill "$TOUCH"; lockfile-remove "$HOST"' EXIT ERR HUP INT QUIT TERM
 
-ssh -2 -C "$HOST" bsmtp-pull-server > "$HOST"
+ssh -2 -i "$HOME/.ssh/id-bsmtp-$HOST" -C "$HOST" bsmtp-pull-server > "$HOST"
 [ -s "$HOST" ] || exit 0
 /usr/sbin/sendmail -bS < "$HOST"
 rm -f "$HOST"