I want to copy my incoming and outgoing email using the my sendmail i am using Rh 7.2 and I have found that page describing what I need but my bad luck is I dont know how to do it.
What I've found is
==============
ifdef(`_MAILER_smtp_',,
`errprint(`*** MAILER(smtp) must appear before copymail mailer')')dnl
LOCAL_CONFIG
CPNOCOPY
LOCAL_NET_CONFIG
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
A copy of an m4 template with these definitions in it can be downloaded from here copyuser.m4
You would include it in a host.mc template file by putting it in the cf/hack directory and using:
HACK(msgidruleset)
or putting it in the cf/feature directory and using:
FEATURE(msgidruleset)
=================
Copyuser.m4
==================
Server: FTP server
Content-Length: 1221
Content-Type: application/octet-stream
Last-Modified: Mon, 15 Nov 1999 23:03:16 GMT
Client-Date: Sun, 06 Oct 2002 21:52:29 GMT
divert(0)
VERSIONID(`copyuser.m4 November 15, 1999')dnl
VERSIONID(`see
http://www.harker.com/sendmail/copyuser.html')dnlVERSIONID(`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
==========================
==========
=
Now I have found the above can anyone who can please help me like how I am going to start with that step by step as I am a beginner and I really dont know how to set this up. I will reall appreciate if you please , please , please , please , please reply to my question with all the step by step instruction.
Thanks,
Sohaib
Start Free Trial