CIDR format table in Postfix doesn't work.

Solution Verified - Updated -

Issue

  • I am currently building a relay-configuration which will need /etc/postfix/network_table file, this file is expected to have up to 500 to 1000 entrys of subnets and ip's. The table is needed to restrict access to the relay-server, the system will be the relay server for several large sites (internal sites only).

  • We need to restrict which ip's/subnets are allowed to sent mail. This is to prevent random IP's and/or end users from sending mail via the relay-server.

  • Getting following error while trying to run postmap on CIDR table

# postmap cidr:/etc/postfix/network_table
postmap: fatal: unsupported map type: cidr
  • Does Postfix support CIDR tables?

Environment

  • Red Hat Enterprise Linux 6
  • Postfix

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content