Office 365 Relay Connectors

Discussion in 'Installation/Configuration' started by Chris Tripp, Mar 11, 2022.

  1. Chris Tripp

    Chris Tripp New Member

    We have client domains on Office 365 and Google.

    The only way I have found to allow relay messages from Google/Office 365 is by adding all of their MX IPs to our "mynetworks" in main.cf.

    Is there a better way to allow relays from those IPs without using "mynetworks"?

    I prefer to keep as much configuration in the ISP databases as possible, instead of editing configuration files directly. There are so many IPs in their SPF/MX list that it is difficult to manage in the configuration file directly.

    Possibly with global postfix Email Whitelist (smtpd_client_restrictions)?
     
    Last edited: Mar 11, 2022
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    I don't understand what the issue is offhand, domainA.com mail is handled by say O365, and they send to domainB.com on your server and are rejected? I'm sure I don't have a complete picture of what's going on, including any relaying. But if that is happening, what is the reason for rejection? (check mail logs)
     
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

  4. Chris Tripp

    Chris Tripp New Member

    It looks like the Global Whitelist/Blacklist is included in the smtp/d client/recipient checks. I assume I can use the Global Whitelist "client" list to whitelist an IP that I want to accept all mail from.
    Does the "Global Whitelist" allow entries with CIDR notation for clients?
     
  5. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    I presume you mean 'Postfix Whitelist'? The Postfix Whitelist is implemented as a database query, it does not support CIDR ranges.
     

Share This Page