1

Topic: mynetworks_style

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

iRedAdmin-Pro MySQL

mynetworks_style = host
However, mynetworks = 127.0.0.1, x.x.x.x/24 (private C class)

Postfix literature states that when a value of mynetworks is set, then it overrides the mynetworks_style = host value.

So is that correct and if so, then is there any reason to leave the mynetworks_style = host in the file?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: mynetworks_style

pbf343 wrote:

Postfix literature states that when a value of mynetworks is set, then it overrides the mynetworks_style = host value.

Excuse me, i didn't find this explanation in Postfix manual page:
http://www.postfix.org/postconf.5.html#mynetworks_style

I don't think there's any conflict with mynetworks and mynetworks_style. With iRedMail default setting, `mynetworks = 127.0.0.1`, we trust just local machine. "trust" means they can send/relay email even without smtp authentication.

3

Re: mynetworks_style

FYI:  http://www.postfix.org/BASIC_CONFIGURAT … tml#syntax


Alternatively, you can specify the mynetworks list by hand, in which case Postfix ignores the mynetworks_style setting. To specify the list of trusted networks by hand, specify network blocks in CIDR (network/mask) notation, for example:

    /etc/postfix/main.cf:
        mynetworks = 168.100.189.0/28, 127.0.0.0/8

4

Re: mynetworks_style

OK, i found this under "mynetwork" (http://www.postfix.org/postconf.5.html#mynetworks)

If you specify the mynetworks list by hand, Postfix ignores the mynetworks_style setting.

With iRedMail default setting, mynetworks is just 127.0.0.1. So you're right, we can remove mynetwork_style.