X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-mail-config.git/blobdiff_plain/55317d73796c0b8a1e5a25f95af191cd3bc806f0..502d7b5222550dfa6f92188676df7b3c3d53150c:/xvm-mail-relay diff --git a/xvm-mail-relay b/xvm-mail-relay index ab792e7..afc0f8e 100755 --- a/xvm-mail-relay +++ b/xvm-mail-relay @@ -1,2 +1,3 @@ #!/bin/bash -formail -i "To: xvm-root@mit.edu" | 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"