divert(0) VERSIONID(`copyuser.m4 November 15, 1999')dnl VERSIONID(`see http://www.harker.com/sendmail/copyuser.html')dnl VERSIONID(`Copyright 1999, Robert Harker, Harker Systems')dnl VERSIONID(`www.harker.com, info@harker.com, 408-295-6239')dnl VERSIONID(`Permission granted to use this as long as this')dnl VERSIONID(`VERSIONID information is preserved in the M4 macro file')dnl VERSIONID(`and any sendmail.cf files created using this M4 macro file')dnl ifdef(`_MAILER_smtp_',, `errprint(`*** MAILER(smtp) must appear before copymail2 mailer')')dnl LOCAL_CONFIG CPNOCOPY LOCAL_RULE_0 R$+<@$+.NOCOPY.> $:$1<@$2.> LOCAL_RULE_3 R$+<@$+.NOCOPY.KAV.> $#esmtp $@$2 $:$1<@$2.> R$+<@$+.NOCOPY.KAV> $#esmtp $@$2 $:$1<@$2.> R$+<@$+.$~P> $#copymail2 $@nohostneeded $:$1<@$2.$3.NOCOPY> MAILER_DEFINITIONS # Copy a message by sending it back to sendmail with an additional address: # copyuser Mcopymail2, P=/usr/lib/sendmail, F=fmSDFMu, S=11/31, R=ifdef(`_ALL_MASQUERADE_', `21/31', `21'), A=sendmail copyuser $u