Loading src/smtp.py +5 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,11 @@ def check_smtp(port): def handler(event, context): # pylint: disable=unused-argument """Lambda event handler.""" for port in [25, 587]: # Port 25 is blocked for Lambda functions. To remove the restriction, the # functions need to execute inside a VPN with a NAT gateway. This will # raise the cost. For now assume that if the submission port is working, # the smtp port is working too (same gateway, same host, same processes). for port in [587]: success, message = check_smtp(port) print(message) if not success: Loading Loading
src/smtp.py +5 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,11 @@ def check_smtp(port): def handler(event, context): # pylint: disable=unused-argument """Lambda event handler.""" for port in [25, 587]: # Port 25 is blocked for Lambda functions. To remove the restriction, the # functions need to execute inside a VPN with a NAT gateway. This will # raise the cost. For now assume that if the submission port is working, # the smtp port is working too (same gateway, same host, same processes). for port in [587]: success, message = check_smtp(port) print(message) if not success: Loading