Update for the new XVM backend subnet IPs.
[invirt/packages/xvm-mail-config.git] / xvm-mail-relay
index ba3bba1..afc0f8e 100755 (executable)
@@ -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"