Skip to content
Mailwel
Theme

Allowlist formatter

Paste IP addresses, ranges or CIDR blocks and get them as ready-to-paste rules for Postfix, nginx, Apache, iptables, nftables, AWS, SPF and more.

One per line, or separated by commas. IPv4 and IPv6 can be mixed. Text after # is ignored.

Try:

Optional. Becomes a comment, rule name or list name, depending on the format.

Postfix mynetworks

4 blocks from 4 items

Example: paste your own list above.

mynetworks =
    192.0.2.0/24
    198.51.100.7/32
    198.51.100.8/32
    [2001:db8:a::]/48

This replaces mynetworks. Keep 127.0.0.0/8 and [::1]/128 in the list if Postfix should still accept mail from the server itself.