Use the new mail.forward config entry in xvm-mail-config when relaying e-mail. 0.0.9
authorEvan Broder <broder@mit.edu>
Sat, 28 Mar 2009 23:56:03 +0000 (19:56 -0400)
committerEvan Broder <broder@mit.edu>
Sat, 28 Mar 2009 23:56:03 +0000 (19:56 -0400)
svn path=/trunk/packages/xvm-mail-config/; revision=2279

debian/changelog
xvm-mail-relay

index bf43578..988ae62 100644 (file)
@@ -1,3 +1,9 @@
+xvm-mail-config (0.0.9) unstable; urgency=low
+
+  * Use the new mail.forward config entry when relaying e-mail.
+
+ -- Evan Broder <broder@mit.edu>  Sat, 28 Mar 2009 19:54:28 -0400
+
 xvm-mail-config (0.0.8) unstable; urgency=low
 
   * Add Provides and Conflicts lines to debian/control for
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"