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 dnl ifdef(`_MAILER_smtp_',, dnl `errprint(`*** MAILER(smtp) must appear before copymail mailer')')dnl LOCAL_CONFIG D{KAV}KAV D{NOCOPY}NOCOPY C{NOCOPY}${NOCOPY} C{KAV}${KAV} LOCAL_RULE_3 R$* @ $+ . ${NOCOPY} $1 < @ $2 . ${NOCOPY} > LOCAL_RULE_0 # added by `LOCAL_RULE_0' # `LOCAL_RULE_0' is used rather than `LOCAL_NET_CONFIG' so that # we do the copymail delivery before virtusertable, # mailertable, or bestmx delivery # see http://www.harker.com/sendmail/copyuser.html # R$+ < @ $+ . $~{NOCOPY}. > $#copymail $@ nohostneeded $: $1 < @ $2 . $3 . ${NOCOPY} > R$+ < @ $+ . $~{NOCOPY} > $#copymail $@ nohostneeded $: $1 < @ $2 . $3 . ${NOCOPY} > R$+ < @ $+ . ${NOCOPY} > $1 < @ $2 . > MAILER_DEFINITIONS # Copy a message by sending it back to sendmail with an additional address: # copyuser Mcopymail, P=/usr/lib/sendmail, F=fmSDFMu, S=11/31, R=ifdef(`_ALL_MASQUERADE_', `21/31', `21'), A=sendmail copyuser $u