RE: [opensuse] Postfix and accepting multiple networks
![](https://seccdn.libravatar.org/avatar/6dbd124e7bd14fb899ae5f1d8e9b48f0.jpg?s=120&d=mm&r=g)
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 ~~~~~~~ Thanks for the mask info. Regarding the 'mynetworks', those parameters are commented out. As shown in the main.cf <snip> #mynetworks_style = class #mynetworks_style = subnet #mynetworks_style = host <snip> & <snip> #mynetworks = 168.100.189.0/28, 127.0.0.0/8 #mynetworks = $config_directory/mynetworks #mynetworks = hash:/etc/postfix/network_table <snip> Here is what *is* listed; <snip> readme_directory = /usr/share/doc/packages/postfix/README_FILES inet_protocols = all biff = no mail_spool_directory = /var/mail canonical_maps = hash:/etc/postfix/canonical virtual_maps = hash:/etc/postfix/virtual relocated_maps = hash:/etc/postfix/relocated transport_maps = hash:/etc/postfix/transport sender_canonical_maps = hash:/etc/postfix/sender_canonical masquerade_exceptions = root masquerade_classes = envelope_sender, header_sender, header_recipient program_directory = /usr/lib/postfix masquerade_domains = $mydomain mydestination = $myhostname, localhost.$mydomain defer_transports = disable_dns_lookups = no mailbox_command = mailbox_transport = smtpd_sender_restrictions = hash:/etc/postfix/access strict_rfc821_envelopes = no smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtp_sasl_auth_enable = no smtpd_sasl_auth_enable = no smtpd_use_tls = no smtp_use_tls = no alias_maps = hash:/etc/aliases mailbox_size_limit = 0 message_size_limit = 10240000 myorigin = $mydomain allow_untrusted_routing = yes <end> Its simple, but it got the job done until now. I think the last line is what allowed the relaying to work without the 'mynetworks' parameter. Thanks again, ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
James D. Parra