On Fri, 2009-02-06 at 12:52 -0800, Nandini Mocherla wrote: > I am new to postfix/SpamAssassin and thinking for a way to block the > email address which does not come from that domain. For example, if > someone with a @xxx.com email sends to a list it must come from a server > in the xxx.com domain else it should be rejected. Is it possible to do > this? > I'm pretty close to that setup and, AFAIK, don't seem to get many rejects. Here are the pieces of my set up:
- my domain name is hosted separately from my ISP. - my domain host does nothing but redirect mail and redirect HTTP requests to my website, which is at my ISP - I use the same domain name internally on my LAN so the From: and envelope-sender names in outgoing mail match my external domain name. - my copy of Postfix uses relay_host to pass all outgoing mail through my ISP's mailserver - I have an SPF record set up at my domain host. - I run Spamassassin In the last week my ISP has introduced greylisting and as a direct result spam has dropped from 70% of incoming to 5% Martin