OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Michael Tokarev (mjttls.msk.ru)
Date: Wed Sep 05 2001 - 00:21:14 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Will Yardley wrote:
    >
    > am i missing something here?
    > does postfix try to guess what subnet you're in by looking at your
    > netmask and make that the default 'mynetworks'?

    Yes, current postfix version might look into your interface configuration
    to "guess" mynetworks. Read about mynetworks_style parameter -- by default
    it is `subnet', other values are `host' and `class' (read sample-smtpd.cf
    and sample-misc.cf files).

    > also if so, why is the
    > entry in there so many times?

    Do not worry about this -- this is how postfix builds it. Well,
    it may be useful to remove duplicates from there -- just to stop
    confusing people at least. But anyway, postfix usually "guesses"
    this list correctly.

    > if i type 'postconf -n' it doesn't show up, so it appears that this has
    > somehow gotten built in as a default option.

    Postconf -n shows only parameters that have non-default values set in
    main.cf. As long as you not set mynetworks, postfix will not show it
    here.

    > is this a problem with my
    > (homemade) debian package?

    No.

    > i don't recall specifically specifying a
    > network to add as a default $mynetworks.

    postconf -n will show it if you set/specify it explicitly.

    []
    > chakra# postconf|grep network
    > mynetworks = 127.0.0.0/8 216.246.35.0/24 216.246.35.0/24 216.246.35.0/24 216.246.35.0/24 216.246.35.0/24
    > mynetworks_style = subnet

    > am i missing something here?
    No.

    > does postfix try to guess what subnet you're in by looking at your
    > netmask and make that the default 'mynetworks'?

    Yes -- see mynetworks_style above

    > also if so, why is one
    > entry in there

    You mean "why one entry is repeated", yes? Perhaps you have aliases
    for your interfaces or something like that?

    Regards,
      Michael.
    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users