RE: [opensuse] Postfix and accepting multiple networks
James D. Parra wrote:
Hello,
Using an internal access only postfix mail server to relay mail, however after adding new subnets to our network I'll need to add those network address ranges and, also, a single host on yet another subnet. Where in postfix or in the main.cf can I add the new address ranges and what is the correct syntax?
Your question is unclear. What is the role of these networks? If they are to be allowed to use the server to relay mails, then they have to appear in a check that permits the relaying before reject_unauth_destination is called. example: /etc/postfix/main.cf: mynetworks = 192.168.1.0/24, 10.10.0.0/16, 192.168.2.1 smtpd_recipient_restrictions = permit_mynetworks check_client_access cidr:/etc/postfix/clients_allowed_relay reject_unauth_destination /etc/postfix/clients_allowed_relay: 1.2.3.4 OK All of the mentioned ip addresses are allowed to relay. If you want Postfix to listen on these networks then you need to define inet_interfaces. ~~~~~ Thanks for your detailed reply. I thought the question was clear enough, but present, hopefully, a better way; How can I add extra subnets to the main.cf in addition to the subnet the relay server is currently on? There is no authentication required to send through this server. It is not available to the public and is used only internally. After adding new subnets to our network, mail from these addresses are rejected when sent through this server, although mail that is on the same subnet that mail server is on is relayed. There is no parameter in the current main.cf for mynetworks. If I add, for example, only the following, will that be enough? /etc/postfix/main.cf: mynetworks = 192.168.1.0/24, 10.10.0.0/16, 192.168.2.1 smtpd_recipient_restrictions = permit_mynetworks Again, this server has no public access. Thank you for your help. ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 07 February 2008 21:29:01 James D. Parra wrote:
server is on is relayed. There is no parameter in the current main.cf for mynetworks.
There has to be. Look again Or do you have mynetworks_style set?
If I add, for example, only the following, will that be enough?
/etc/postfix/main.cf: mynetworks = 192.168.1.0/24, 10.10.0.0/16, 192.168.2.1
You need a network mask there. if 192.168.2.1 is a single machine that should be trusted, use /32 Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson wrote:
On Thursday 07 February 2008 21:29:01 James D. Parra wrote:
server is on is relayed. There is no parameter in the current main.cf for mynetworks.
There has to be. Look again
mynetworks is not a mandantory parameter.
Or do you have mynetworks_style set?
Even if he didn't set the parameter, by default it is set to subnet: postconf -d mynetworks_style mynetworks_style = subnet
If I add, for example, only the following, will that be enough?
/etc/postfix/main.cf: mynetworks = 192.168.1.0/24, 10.10.0.0/16, 192.168.2.1
You need a network mask there. if 192.168.2.1 is a single machine that should be trusted, use /32
Better (cidr) style, but Postfix will accept ip addresses here as well. Though it should work as desired if he set it up this way. Please also execute "postfix reload" to make Postfix aware of the change. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Anders Johansson
-
James D. Parra
-
Sandy Drobic