So this is going to sound backward from how the round-trip IMAP/POP3 sensors are typically used...but here is what I want to do:
We have internal Exchange servers that do not have IMAP or POP3 enabled. We have no need to enable those services and do not want to for the sole reason of round-trip mail monitoring. Is it possible to setup either of these sensors to use a Gmail account as the originating mailbox/SMTP server, send the message to our on-premise Exchange with an auto reply back to Gmail, and then have the sensor check the gmail box?
I want the sensor to monitor mail flow from Gmail to on premise and back so I want to use their SMTP server (Gmail -> SPAM filter -> Exchange -> Gmail. If I use our internal one I would only test the outbound connection (internal SMTP -> internal Exchange -> Gmail).
So far I only get errors when trying to make the SMTP connection. I created a device called smtp.gmail.com and tried to configure it to point to Gmail's ports as defined at https://support.google.com/mail/answer/7126229?hl=en but have had no luck getting a connection. In the sensor log I only see "Connection to SMTP Server: Unexpected connection drop (code: PE039)".
I am pretty sure the IMAP part of the connection will work fine once it gets past the SMTP connection and sends the message.