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

Re: loops back to myself

Expand Messages
  • Noel Jones
    ... http://www.postfix.org/postconf.5.html#check_sender_mx_access Use it something like this: # main.cf smtpd_recipient_restrictions = permit_mynetworks
    Message 1 of 4 , Apr 23, 2013
    • 0 Attachment
      On 4/23/2013 12:26 AM, Feel Zhou wrote:
      > Hello, my friend
      > This is tom, I'm sending my greeting from China
      > I got some problem, and need your help
      > This mail is in the queue, but I hold it,just like that
      > C94C6AC00D4! 3372 Wed Apr 17 19:07:51 MAILER-DAEMON
      > (mail for uhb.com
      > <http://uhb.com> loops back to myself)
      > loncmx@...
      > <mailto:loncmx@...>
      > Then I found it's not a good mx recorder,
      > uhb.com <http://uhb.com>. 85650 IN MX 3
      > mail.uhb.com <http://mail.uhb.com>.
      > mail.uhb.com <http://mail.uhb.com>. 86020 IN
      > A 127.0.0.1
      > How can I reject these mail before it in the queue
      > Thanks for your time.
      > TOM

      http://www.postfix.org/postconf.5.html#check_sender_mx_access

      Use it something like this:

      # main.cf
      smtpd_recipient_restrictions =
      permit_mynetworks
      permit_sasl_authenticated
      reject_unauth_destination
      check_sender_mx_access hash:/etc/postfix/bogus_sender_mx
      ... other UCE controls ...


      # bogus_sender_mx
      127.0.0.1 REJECT bogus sender mx loopback address found





      -- Noel Jones
    • Benny Pedersen
      ... $ cat main.cf # in smtpd_sender_restrictions = ... check_sender_mx_access cidr:/etc/postfix/sender_mx_access ... $ cat /etc/postfix/sender_mx_access
      Message 2 of 4 , Apr 23, 2013
      • 0 Attachment
        Feel Zhou skrev den 2013-04-23 07:26:

        > How can I reject these mail before it in the queue

        $ cat main.cf
        # in smtpd_sender_restrictions =
        ...
        check_sender_mx_access cidr:/etc/postfix/sender_mx_access
        ...

        $ cat /etc/postfix/sender_mx_access
        0.0.0.0/8 REJECT MX in IANA reserved network
        127.0.0.0/8 REJECT MX in loopback network
        10.0.0.0/8 REJECT MX in non-routable network
        169.254.0.0/16 REJECT MX in non-routable network
        172.16.0.0/12 REJECT MX in non-routable network
        192.168.0.0/16 REJECT MX in non-routable network
        224.0.0.0/4 REJECT MX in multicast network
        240.0.0.0/4 REJECT MX in IANA reserved network

        --
        senders that put my email into body content will deliver it to my own
        trashcan, so if you like to get reply, dont do it
      • Viktor Dukhovni
        ... If you really want to dot the i s and cross the t s you can add: 192.0.2.0/24 REJECT MX in IANA example network 198.18.0.0/15 REJECT MX in RFC 2544
        Message 3 of 4 , Apr 23, 2013
        • 0 Attachment
          On Wed, Apr 24, 2013 at 03:05:58AM +0200, Benny Pedersen wrote:

          > Feel Zhou skrev den 2013-04-23 07:26:
          >
          > >How can I reject these mail before it in the queue
          >
          > $ cat main.cf
          > # in smtpd_sender_restrictions =
          > ...
          > check_sender_mx_access cidr:/etc/postfix/sender_mx_access
          > ...
          >
          > $ cat /etc/postfix/sender_mx_access
          > 0.0.0.0/8 REJECT MX in IANA reserved network
          > 127.0.0.0/8 REJECT MX in loopback network
          > 10.0.0.0/8 REJECT MX in non-routable network
          > 169.254.0.0/16 REJECT MX in non-routable network
          > 172.16.0.0/12 REJECT MX in non-routable network
          > 192.168.0.0/16 REJECT MX in non-routable network
          > 224.0.0.0/4 REJECT MX in multicast network
          > 240.0.0.0/4 REJECT MX in IANA reserved network

          If you really want to dot the i's and cross the t's you can
          add:

          192.0.2.0/24 REJECT MX in IANA example network
          198.18.0.0/15 REJECT MX in RFC 2544 benchmark network

          # IPv6
          2001:db8::/32 REJECT MX in RFC3849 example network
          fc00::/7 REJECT MX in RFC4193 site local network
          ::1/128 REJECT MX in RFC4291 loopback network
          fe80::/10 REJECT MX in RFC4291 link local network
          2001:200::/48 REJECT MX in RFC5180 benchmark network
          100::/64 REJECT MX in RFC6666 discard-only network

          --
          Viktor.
        Your message has been successfully submitted and would be delivered to recipients shortly.