trustymail icon indicating copy to clipboard operation
trustymail copied to clipboard

Cisco IronPort email gateways may close SMTP connections before the STARTTLS scan

Open seanthegeek opened this issue 7 years ago • 8 comments

e.g. cardinalhealth.com

[STARTTLS] In starttls_scan at /usr/local/lib/python3.6/dist-packages/trustymail-0.5.0.dev0-py3.6.egg/trustymail/trustymail.py:125: Connection unexpectedly closed

Seems like this might be anti-DoS? @jsf9k

seanthegeek avatar Jan 03 '18 15:01 seanthegeek

@seanthegeek, I do see some "Connection unexpectedly closed" stuff when I scan, but I never really investigated it. How do you know this is related to Cisco Iron Port hardware?

jsf9k avatar Jan 04 '18 15:01 jsf9k

Because I work for Cardinal Health :)

seanthegeek avatar Jan 04 '18 21:01 seanthegeek

Ha! :relaxed:

jsf9k avatar Jan 04 '18 21:01 jsf9k

Getting similar results here on our Ironport appliances:

[STARTTLS] In starttls_scan at /opt/pyenv/versions/3.6.1/lib/python3.6/site-packages/trustymail/trustymail.py:117: [Errno 111] Connection refused, [STARTTLS] In starttls_scan at /opt/pyenv/versions/3.6.1/lib/python3.6/site-packages/trustymail/trustymail.py:117: timed out, [STARTTLS] In starttls_scan at /opt/pyenv/versions/3.6.1/lib/python3.6/site-packages/trustymail/trustymail.py:117: [Errno 111] Connection refused, [STARTTLS] In starttls_scan at /opt/pyenv/versions/3.6.1/lib/python3.6/site-packages/trustymail/trustymail.py:117: timed out

Y054i avatar Jan 17 '18 14:01 Y054i

I have a friendly volunteer with a Cisco IronPort device who has agreed to help troubleshoot. I'm going to be looking into this next week.

jsf9k avatar Jan 25 '18 13:01 jsf9k

The IronPort device that I troubleshooted against worked fine.

jsf9k avatar Feb 27 '18 14:02 jsf9k

In our case it turns out the issue was a misconfiguration in a particular Ironport Mail Flow Policy. All other MFPs were configured correctly, which is why my mxtoolbox.com and checktls.com tests were always successful (those senders fell under a different MFP which was set correctly). I haven't had a chance to go back through all the logs, but I assume that the IP address(es) that the DHS/NCATS tests are done from fell under a Sender Group tied to this MFP which is why our reports showed non-compliance.

Y054i avatar Mar 02 '18 22:03 Y054i

@Y054i, thank you for following up! That's good information.

jsf9k avatar Mar 03 '18 16:03 jsf9k