#!/bin/sh if grep -q '$: $>remove_local $1<@$2.>$3' /etc/sendmail.cf then patch /etc/sendmail.cf <<\EOF --- sendmail.cf.ORIG Fri Jul 16 15:39:50 1999 +++ sendmail.cf.FIXED Fri Jul 16 15:44:46 1999 @@ -879,15 +879,17 @@ # now check other side R$* $| $* $: $>3 $2 # remove local part -R$*<@$+.>$* $: $>remove_local $1<@$2.>$3 +R$+ $: $>remove_local $1 # still something left? R$*<@$+>$* $#error $@ 5.7.1 $: 551 we do not relay Sremove_local # remove RelayTo part (maybe repeatedly) +R$*<@$=w.>$* $>3 $1 $3 R$*<@$*$={RelayTo}.>$* $>3 $1 $4 -R$*<@$=w.>$* $: $>remove_local $>3 $1 $3 - +R$*<@$*>$* $@ $1<@$2>$3 +R$- $: $>3 $( dequote $1 $) +R$*<@$*>$* $: $>remove_local $1<@$2>$3 SjunkIP EOF /etc/rc.d/init.d/sendmail restart fi