On Sun, 13 Sep 2009, Rajesh M wrote:
i sometimes get spam with both the sender id and recipient id as the
same. Obviously such emails are originating outside my server.
I DO NOT wish to user SPF
Why not, if I may ask? Publishing an SPF record seems to cut down on how
much your domain is used in sender address forgery.
3) If the domain is from my server and the ip address is not my server
ip then reject that email
How do i achieve this please ?
It's best to do this sort of poison-pill blacklisting at SMTP time in the
MTA, if at all possible, and avoid the overhead SA introduces. What MTA
software do you use? Some can be configured to do this natively.
I use milter-regex with Sendmail to reject any message that claims to be
from my domain but doesn't originate from my network. There are some other
high-value tests it performs as well.
You can see my sample config at http://www.impsec.org/~jhardin/antispam/
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
An operating system design that requires a system reboot in order to
install a document viewing utility does not earn my respect.
-----------------------------------------------------------------------
4 days until the 222nd anniversary of the signing of the U.S. Constitution