meillo@86: #!/bin/sh meillo@86: # meillo@86: # Dummy UUCP rmail command for postfix/qmail systems meillo@86: # meillo@86: # written by luciano l. mannucci meillo@86: # improved by Wietse Venema meillo@86: # see: meillo@86: # List: postfix-users meillo@86: # Subject: Rmail: very small fix meillo@86: # From: luke@nameron.smd.sublink.org (luciano l. mannucci) meillo@86: # Date: 2000-09-13 14:31:30 meillo@86: # URL: http://marc.info/?l=postfix-users&m=96885536302087 meillo@86: # meillo@86: # taken from postfix-2.5.5/auxiliary/rmail/rmail meillo@86: meillo@86: meillo@86: SENDMAIL="/usr/sbin/sendmail" meillo@86: IFS=" " read junk from junk junk junk junk junk junk junk relay meillo@86: meillo@86: case "$from" in meillo@86: *[@!]*) ;; meillo@86: *) from="$from@$relay";; meillo@86: esac meillo@86: meillo@86: exec $SENDMAIL -i -f "$from" -- "$@"