I just posted an article about how to whitelist Gmail and Hotmail/Outlook.com IP addresses for Postscreen, based on the webmaster's SPF records:I'd appreciate feedback from anyone on this list generous enough to offer it, so I can fix any mistakes or make the article better.Thanks,Steve
Maintaining a local postscreen whitelist of well-known providers is
largely obsolete.
http://www.postfix.org/postconf.5.html#postscreen_dnsbl_whitelist_threshold
http://www.postfix.org/postconf.5.html#postscreen_dnsbl_sites
a minimal main.cf example would be something like:
postscreen_dnsbl_sites = zen.spamhaus.org*1 list.dnswl.org*-1
postscreen_dnsbl_whitelist_threshold = -1
Interesting article Steve. What happens when/if they change ip blocks in between cron runs?and I can't help thinking this may be a little redundant though, with spf, dkim and dmarc in place the source of the email is checked and acted upon accordingly.
Thank you Steve.
I did something similar some weeks ago because I had to get in contact with MS Support urgently.
I remember I had to get outbound gateways IPs from <spf.protection.outlook.com>, but I didn't use <ns1.msft.net>. Actually in your script this NS return no SPF records (IP and includes).
I think this WL could be completed with records from:
spfa.protection.outlook.com
spfb.protection.outlook.com
a.
I thinks it's a good starting point, Steve.
And it's much better than doing it manually as I did :-)
Anyway... I rapidly tested delivery time from my office365 account:
- WL disabled: 15 hours
- WL enabled: just a few minutes
postgrey enabled.
I’m seeing this in the mail.logwarning: cidr map /usr/local/etc/postfix/msft_whitelist.cidr, line 36: non-null host address bits in "207.68.169.173/30", perhaps you should use "207.68.169.172/30" instead: skipping this ruleNov 26 11:39:25 zeus postfix/postscreen[29402]: warning: cidr map /usr/local/etc/postfix/msft_whitelist.cidr, line 40: non-null host address bits in "65.55.238.129/26", perhaps you should use "65.55.238.128/26" instead: skipping this ruleNov 26 11:39:25 zeus postfix/postscreen[29402]: warning: cidr map /usr/local/etc/postfix/msft_whitelist.cidr, line 41: non-null host address bits in "65.55.238.129/26", perhaps you should use "65.55.238.128/26" instead: skipping this ruleWhat do you think?
So do I.So I’ll hand cut the cidr file for now, and wait till the author updates his code..
Every DNS SOA should have a RP field that is supposed to be an email address (s/@/./) for the Responsible Party who can fix problems in the zone. Surely a big responsible company like Microsoft wouldn't get that wrong... (or maybe they would)
I reviewed my logs today and I saw a lot of connections from a bunch of MS outbound gateways before entering the "postgrey layer".
Once postscreen marked one of these gw PASS OLD postgrey put the message in greylist (default 5 mins), but it expects another connection within (better: after!) this time. This gw "disappeared" for 12 hours instead, while another bunch of gateways hit my server.
I know somebody discourages the use of postscreen + postgrey. But I don't understand those MS retries.
Here is my stripped log:
Nov 24 17:51:13 MAILSERVER postfix/postscreen[21231]: CONNECT from [157.55.234.104]:45788 to [MAILSERVER]:25
Nov 24 17:51:20 MAILSERVER postfix/tlsproxy[21233]: CONNECT from [157.55.234.104]:45788
Nov 24 17:51:20 MAILSERVER postfix/postscreen[21231]: NOQUEUE: reject: RCPT from [157.55.234.104]:45788: 450 4.3.2 Service currently unavailable; from=<user@ms>, to=<recipient@here>, proto=ESMTP, helo=<emea01-db3-obe.outbound.protection.outlook.com>
Nov 24 17:51:20 MAILSERVER postfix/tlsproxy[21233]: DISCONNECT [157.55.234.104]:45788
Nov 24 17:51:20 MAILSERVER postfix/postscreen[21231]: HANGUP after 0.21 from [157.55.234.104]:45788 in tests after SMTP handshake
Nov 24 17:51:20 MAILSERVER postfix/postscreen[21231]: PASS NEW [157.55.234.104]:45788
Nov 24 17:51:20 MAILSERVER postfix/postscreen[21231]: DISCONNECT [157.55.234.104]:45788
On Thu, Nov 26, 2015 at 12:03 PM, ale@proto <aless...@protodigital.net> wrote:
I reviewed my logs today and I saw a lot of connections from a bunch of MS outbound gateways before entering the "postgrey layer".
Once postscreen marked one of these gw PASS OLD postgrey put the message in greylist (default 5 mins), but it expects another connection within (better: after!) this time. This gw "disappeared" for 12 hours instead, while another bunch of gateways hit my server.
I know somebody discourages the use of postscreen + postgrey. But I don't understand those MS retries.
FYI - 157.55.234.0/24 is listed in the whitelist currently generated by Postwhite, so running it would probably get that mail to you many hours sooner.