On 17/07/00 17:26 +0200, Rajesh Divakaran spewed into the LI bitstream:
>I have a RH 6.1 Linux mail server running sendmail, connected to a Leased
>Line.
OK ...
>I have an ID created on that something like... [EMAIL PROTECTED]
>now i want this ID to be restricted to Internal mailing only.
Make his ID something like [EMAIL PROTECTED] then (or better
still, block all outgoing mail coming to this mailbox).
>I mean if someone sends a email at this ID, from within the organization, it
>shoudl accept the mail and send it to me..
>Where as if someone from outside tries to send email at this ID, it should
>bounce back to the sender.
Procmail then. Put this in your login's procmailrc -
:0:
*^TO_:[EMAIL PROTECTED]
!*^From:*@yourcompany.com
/dev/null
And place an alias in /etc/virtusertable so that all mails to this address
reach your mailbox (or root). [test the recipe first!!!!]
>Is there a software, which will make a log of all mails send and received thru
>my mailserver , wiht the contents of the mails.
/var/log/maillog in redhat. I keep an xterm running tail -f on that.
you get something like -
Jul 17 18:01:03 . [9109]: SAAAA09108: [EMAIL PROTECTED],
delay=00:00:08, xdelay=00:00:08, mailer=esmtp,
relay=cs1.hyd.office.juno.com. [208.238.62.2], stat=Sent (SAAAA19654
Message accepted for delivery)
Contents of the mails is different - but you can set something so that
some mailbox is bcc'd on all mail sent and recvd to your domain.
>We want it to be implemented in our orgazantions as we are facing some
>problmes wiht mails. i.e. ppl sending mails by impersonating as someone else
>.. etc...
Hmmmm... contact me offlist with full headers. Is some spammer forging
<[EMAIL PROTECTED]> or is someone claiming to be
<[EMAIL PROTECTED]> and forging his name?
See http://www.sendmail.org for lots of tips on preventing spammers ... or
my PCQ July 2000 article on the same subject.
-suresh
--
Suresh Ramasubramanian + [EMAIL PROTECTED]
Help me, I'm a prisoner in a Fortune cookie file!
-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help