#!/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"