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

Restrict mail where MAIL FROM == RCPT TO

Expand Messages
  • Ed W
    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
    Message 1 of 4 , Mar 1 3:43 PM
    • 0 Attachment
      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
    • Sahil Tandon
      ... You don t have to write a policy server; just plug one in. Search the archives of this mailing list for postfwd as one one example. -- Sahil Tandon
      Message 2 of 4 , Mar 1 3:53 PM
      • 0 Attachment
        On Sun, 01 Mar 2009, 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?

        You don't have to write a policy server; just plug one in. Search the
        archives of this mailing list for "postfwd" as one one example.

        --
        Sahil Tandon <sahil@...>
      • 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 3 of 4 , Mar 1 4:13 PM
        • 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 4 of 4 , Mar 1 4:57 PM
          • 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.