>>В этом же форуме было, как это сделать через procmail.
>Нужен именно Sendmail
Когда-то пытался решить подобную проблему, в Инете нащел следующее(но не проверял)
Копирование всей почты.
copyuser_m4.htm
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 copymail mailer')')dnl
LOCAL_CONFIG
CPNOCOPY
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.> $#esmtp $@$2 $:$1<@$2.>
R$+<@$+.> $#copymail $@nohostneeded $:$1<@$2.NOCOPY>
R$+<@$+> $#copymail $@nohostneeded $:$1<@$2.NOCOPY>
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 -C /tmp/copyuser.cf copyuser $u
Если прокатит, сообщи.