Set envelope sender address.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 16 Feb 2012 13:22:06 +0000 (14:22 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 16 Feb 2012 13:22:06 +0000 (14:22 +0100)
debian/postinst

index 630dce4..97d8ac5 100644 (file)
@@ -294,7 +294,7 @@ EOF
     # Try to send it
     if [ -x "`which sendmail 2>/dev/null`" ]; then
         echo Mailing request from $REQUEST_FILE
-        if sendmail -t -oi < $REQUEST_FILE; then
+        if sendmail -t -oi -f "$EMAIL" < $REQUEST_FILE; then
             requestsent=1
         fi
     fi