Testfirewall, Syntax, Example – Google Message Security Batch Reference Guide User Manual
Page 274: Description, Return values, Authorization

Batch Commands
277
testfirewall
The testfirewall command tests whether your firewall allows email traffic from IP
addresses outside of the Message Security service IP range.
This command is applicable to the Google Message Security, Google Message
Discovery, and Google Message Filtering products only.
Syntax
testfirewall <user address>
Example
testfirewall [email protected]
Description
Determines if connections to the mail server are not blocked by the firewall.
•
<user address> -- Address of the user to be used as the test message
recipient.
Enclose <user address> in double quotes or preceded with a ‘\’ symbol if it
contains a quote (‘), double quote (“), backslash (\), apostrophe, commas, #, =
symbols.
Return Values
•
If your server is blocking connections from outside IP addresses, you will see
a message saying the test passed.
Checking firewall from 12.158.34.71...passed (did not accept
connection)
•
If your server is accepting connections from outside of the IP addresses, you
will see a message saying the connection was accepted. The test failed.
Checking firewall from 12.158.34.71...failed (accepted connection)
Authorization
•
Read: Organization Management
•
Write: Organization Management