X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-mail-config.git/blobdiff_plain/3fe6159633b1907743636d8a0a1d33afc6fc4f21..HEAD:/xvm-mail-relay diff --git a/xvm-mail-relay b/xvm-mail-relay index ba3bba1..afc0f8e 100755 --- a/xvm-mail-relay +++ b/xvm-mail-relay @@ -1,2 +1,3 @@ #!/bin/bash -/usr/bin/formail -i "To: xvm-root@mit.edu" | /usr/sbin/sendmail -f "root@$(hostname -f)" xvm-root@mit.edu \ No newline at end of file +forward="$(invirt-getconf mail.forward)" +/usr/bin/formail -i "To: $forward" | /usr/sbin/sendmail -f "root@$(hostname -f)" "$forward"