Loading ...
Sorry, an error occurred while loading the content.

Re: Restrict mail where MAIL FROM == RCPT TO

Expand Messages
  • Noel Jones
    ... if you have just a few users, you can set up smtpd_restriction_classes for each user, but that quickly gets out of hand. Some folks reject their own domain
    Message 1 of 4 , Mar 1, 2009
    • 0 Attachment
      > ------- Original Message -------
      > From: Ed W <lists@...>
      > To: postfix-users@...
      > Sent: 01-Mar-09, 17:43:54
      > Subject: Restrict mail where MAIL FROM == RCPT TO
      >
      > Anyone got any good recipes for restricting mail in the case of mail
      > apparently sent FROM a local address, TO the same local address, apart
      > from obviously writing a policy server?
      >
      > (It's to try and tighten up some checks on high probability spam)
      >
      > Thanks
      >
      > Ed W
      >

      if you have just a few users, you can set up smtpd_restriction_classes for each user, but that quickly gets out of hand.

      Some folks reject their own domain from an "outside" unauthenticated connection, but that's guaranteed to reject some amount of legit mail. You get to decide if "some amount" is acceptable at your site.

      -- Noel Jones
    • Darren Pilgrim
      ... How do you want to restrict the email? If you just want to alter the restrictions placed on such mail, create a map with all your domains returning the
      Message 2 of 4 , Mar 1, 2009
      • 0 Attachment
        Ed W wrote:
        > Anyone got any good recipes for restricting mail in the case of mail
        > apparently sent FROM a local address, TO the same local address, apart
        > from obviously writing a policy server?
        >
        > (It's to try and tighten up some checks on high probability spam)

        How do you want to restrict the email? If you just want to alter the
        restrictions placed on such mail, create a map with all your domains
        returning the restriction or restriction class. If you just want to
        reject the mail and can live without non-rewriting forwarding, create
        SPF records on your domains with -all and enable SPF enforcement.
      Your message has been successfully submitted and would be delivered to recipients shortly.