Re: mynetworks in a file?

From: Scott Lambert (no email)
Date: Tue Oct 01 2002 - 05:21:34 EDT


On Tue, Oct 01, 2002 at 07:44:56AM -0000, Peter Kiem wrote:
> I have to be able to only allow certain client IP addresses to send emails
> from a client's network blocks.
>
> e.g. allow 10.1.1.1 but not 10.1.1.2, 10.1.1.3 etc
> allow 10.1.2.1 but not 10.1.2.2, 10.1.2.3 etc
>
> Now I see in main.cf the following possibilities:
> #mynetworks = $config_directory/mynetworks
> #mynetworks = hash:/etc/postfix/network_table
>
> What is the preferred method of listing about 300 IP addresses and what
> format should the file be in? THAT part doesn't seem to be documented
> anywhere :)

It works as an IP / network per line list if you don't use the hash: type.

-- 
Scott Lambert                    KC5MLE                       Unix SysAdmin
      
-
To unsubscribe, send mail to  with content
(not subject): unsubscribe postfix-users







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD