Use the new mail.forward config entry in xvm-mail-config when relaying e-mail.
[invirt/packages/xvm-mail-config.git] / xvm-mail-relay
index ab792e7..afc0f8e 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/bash
 #!/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"