aad-for-linux / pam_aad

Azure Active Directory PAM Module
GNU General Public License v3.0
22 stars 9 forks source link

Implement error checking for blacklisted IPs #15

Open oxr463 opened 2 years ago

oxr463 commented 2 years ago
[root@ip-172-26-7-166 beatles]# nc -C outlook.com 25
220 DM3NAM03FT051.mail.protection.outlook.com Microsoft ESMTP MAIL Service ready at Fri, 19 Apr 2019 20:03:00 +0000
HELO
250 DM3NAM03FT051.mail.protection.outlook.com Hello [3.211.34.40]
Mail
501 5.5.4 Unrecognized parameter [DM3NAM03FT051.eop-NAM03.prod.protection.outlook.com]
MAIL FROM: noreply@cyberninjas.com
250 2.1.0 Sender OK
RCPT TO: email
550 5.7.1 Service unavailable, Client host [3.211.34.40] blocked using Spamhaus. To request removal from this list see https://www.spamhaus.org/query/ip/[3.211.34.40] (AS16012611) [DM3NAM03FT051.eop-NAM03.prod.protection.outlook.com]

_Originally posted by @neverrend in #34 (comment)_

Source: https://github.com/CyberNinjas/pam_aad/issues/35