how to restrict subnets to send only to specific domains

2018-06-28 Thread Olaf313
Hello, i have to setup Postfix that clients or printers from subnets like 192.168.10.0/24 or specific ip addresses like 192.168.16.45 are allowed to send mails to every destination. I have done this by this main.cf: smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_

Re: performance question

2018-06-25 Thread Olaf313
The problem is that all mails for domain.com will go to O365 now but there are some mailboxes not yet migrated so they still reside on our on-premise system. That's why we can't define the whole domain. But yes, the transport file is hash'ed :) -- Sent from: http://postfix.1071664.n5.nabble.co

performance question

2018-06-25 Thread Olaf313
Hi, for a period of time we need to route ~ 2.000 mail addresses to our old system. I would add those addresses into the transport file like na...@domain.com smtp:system.fqdn.com name2...@domain.com smtp:system.fqdn.com Will the larger transport file now affect the performance of the Postfi

Re: Valid examples for mynetworks file

2018-06-07 Thread Olaf313
Sorry for the missing details: I have added this to the default line in main.cf: mynetworks = 127.0.0.0/8 [:::127.0.0.0]/104 [::1]/128 hash:/etc/postfix/SMTP_allow.txt then run the command postmap SMTP_allow.txt (created the db file) postfix reload -- Sent from: htt

Valid examples for mynetworks file

2018-06-07 Thread Olaf313
Good day, i am working on a migration from an IBM Domino SMTP server to Postfix. In Domino we had SMTP_allow documents with IP addresses of systems allowed for sending mails via this server. Standard IP addresses are fine so i add them like: 192.168.148.52 OK As far as i understand are *names *