masqmail-0.2

diff contrib/rmail @ 86:92673a185add

added rmail script from postfix
author meillo@marmaro.de
date Sat, 19 Jun 2010 18:50:41 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/contrib/rmail	Sat Jun 19 18:50:41 2010 +0200
     1.3 @@ -0,0 +1,25 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# Dummy UUCP rmail command for postfix/qmail systems
     1.7 +#
     1.8 +# written by luciano l. mannucci <luke@nameron.smd.sublink.org>
     1.9 +# improved by Wietse Venema <wietse@porcupine.org>
    1.10 +# see: 
    1.11 +#      List:       postfix-users
    1.12 +#      Subject:    Rmail: very small fix
    1.13 +#      From:       luke@nameron.smd.sublink.org (luciano l. mannucci)
    1.14 +#      Date:       2000-09-13 14:31:30
    1.15 +#      URL:        http://marc.info/?l=postfix-users&m=96885536302087
    1.16 +#
    1.17 +# taken from postfix-2.5.5/auxiliary/rmail/rmail
    1.18 +
    1.19 +
    1.20 +SENDMAIL="/usr/sbin/sendmail"
    1.21 +IFS=" " read junk from junk junk junk junk junk junk junk relay
    1.22 +
    1.23 +case "$from" in
    1.24 + *[@!]*) ;;
    1.25 +      *) from="$from@$relay";;
    1.26 +esac
    1.27 +
    1.28 +exec $SENDMAIL -i -f "$from" -- "$@"