From 80888c75977b908fc83e70b187a19dd6bc3bd831 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sat, 28 Mar 2009 19:56:03 -0400 Subject: [PATCH] Use the new mail.forward config entry in xvm-mail-config when relaying e-mail. svn path=/trunk/packages/xvm-mail-config/; revision=2279 --- debian/changelog | 6 ++++++ xvm-mail-relay | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index bf43578..988ae62 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 diff --git a/xvm-mail-relay b/xvm-mail-relay index ba3bba1..afc0f8e 100755 --- a/xvm-mail-relay +++ b/xvm-mail-relay @@ -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" -- 1.7.9.5