Mailinglist Archive: opensuse (3459 mails)
| < Previous | Next > |
Re: [opensuse] Postfix and accepting multiple networks
- From: Sandy Drobic <suse-linux-e@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 07 Feb 2008 21:01:45 +0100
- Message-id: <47AB63A9.9030704@xxxxxxxxxxxxxxxxxxxxxxx>
James D. Parra wrote:
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.
--
Sandy
List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
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.
--
Sandy
List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |