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.

Reply via email to