290079Re: Directive "mynetwork" and "mynetwork_style"
- Dec 14, 2012Thanks :)
On Fri, Dec 14, 2012 at 1:35 PM, Will <will@...> wrote:
> On 12/14/12 01:43, Muhammad Yousuf Khan wrote:
> i am confuse about the utilization of directives: "mynetwork" and
> is "mynetwork" directive completely dependent on "mynetwork_style".
> can i use only "mynetwork" for relaying messages or i always have to
> use "mynetwork_style" along with "mynetwork" to allow relaying to
> particular host or subnet.
> thanks in advance.
> mynetworks and mynetworks_style are essentially mutually exclusive; you use
> either one or the other. If you specify mynetworks, mynetworks_style is
> ignored. Each is used to specify SMTP clients that are "trusted" by the
> server based on their IP address. mynetworks_style is used to specify
> trusted clients based on their relationship to the server's IP address,
> while mynetworks is specifies trusted clients by explicitly giving their IP
> addresses or an IP address range. For example, specifying "mynetworks_style
> = subnet" indicates that all clients in that subnet are trusted, while
> mynetworks = 126.96.36.199/24 might be used instead to say the same thing (if
> 188.8.131.52/24 describes your subnet).
> These clients are "trusted" because the mynetworks (or mynetworks_style)
> parameter is used by smtpd to determine who is allowed to relay mail when
> the smtpd_relay_restrictions parameter contains "permit_mynetworks." If you
> haven't changed smtpd_relay_restrictions in your config, it defaults to
> "permit_mynetworks, reject_unauth_destination," which will allow those
> clients listed in mynetworks (or mynetworks_style) to relay mail. You only
> need to use mynetworks OR mynetworks_style (but not both) to enable relaying
> from certain clients.
> Read the documentation when you get confused. It is explained quite clearly
- << Previous post in topic Next post in topic >>