I'm trying to configure notifications using Gmail per these instructions:
https://community.sophos.com/kb/en-us/124935
I've tried setting it up with two separate accounts, one with 2FA enabled using an app password and another without 2FA enabled with "Allow less secure apps" enabled. I've also tried setting it up with my iCloud account. Here's a screenshot of the mail server settings:
When I try to send a test email, I see the following in the log viewer:
2019-09-11 17:41:21Emailmessageid="18035" log_type="Anti-Spam" log_component="SMTP" log_subtype="Allowed" status="" fw_rule_id="0" user="" policy_name="None" sender="my@gmail.com" recipient="my@gmail.com" subject="Test Mail" message_id="1i8DAn-0003rT-Aj-1568248881" email_size="933" action="QUEUED" reason="Email has been accepted by Device and queued for scanning." host="gmail.com" domain="" src_ip="127.0.0.1" src_country="R1" dst_ip="" dst_country="" protocol="TCP" src_port="41197" dst_port="0" bytes_sent="0" bytes_received="0" quarantine_reason="Other" Copy to clipboard
Here's what i'm seeing via ssh in /log/smtpd_main.log (email address and some IP addresses changed for obvious reasons).
6134 Considering: my@email.com
6134 unique = my@email.com
6134 my@email.com: queued for routing
6134 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
6134 routing my@gmail.com
6134 --------> router_for_notifications router <--------
6134 local_part=jamiemun domain=gmail.com
6134 checking "condition" "${if and{{bool_lax{1}}{bool_lax{${if eq{$acl_c1}{1}{1}{0}}}}}}"...
6134 calling router_for_notifications router
6134 router_for_notifications router called for my@email.com
6134 domain = gmail.com
6134 route_item = * "<, smtp.gmail.com"
6134 original list of hosts = "<, smtp.gmail.com" options =
6134 expanded list of hosts = "<, smtp.gmail.com" options =
6134 set transport notification_smtp
6134 finding IP address for smtp.gmail.com
6134 doing DNS lookup
6134 queued for notification_smtp transport: local_part = jamiemun
6134 domain = gmail.com
6134 errors_to=NULL
6134 domain_data=NULL localpart_data=NULL
6134 routed by router_for_notifications router
6134 envelope to: my@email.com
6134 transport: notification_smtp
6134 host gmail-smtp-msa.l.google.com [xxxx]
6134 host gmail-smtp-msa.l.google.com [xxxx]
6134 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
6134 After routing:
6134 Local deliveries:
6134 Remote deliveries:
6134 my@email.com
6134 Failed addresses:
6134 Deferred addresses:
6135 T: notification_smtp: for my@gmail.com
6135 locking /sdisk/spool/output//db/retry.lockfile
6135 locking /sdisk/spool/output//db/retry.lockfile
6135 locking /sdisk/spool/output//db/wait-notification_smtp.lockfile
6134 LOG: retry_defer MAIN
6134 == my@email.com <my@email.com> R=router_for_notifications T=notification_smtp defer (-53): retry time not reached for any host for 'gmail.com'
2019-09-11 13:44:20.793 [6134] xxxx == my@email.com <my@gmail.com> R=router_for_notifications T=notification_smtp defer (-53): retry time not reached for any host for 'gmail.com'
6126 LOG: queue_run MAIN
6126 End queue run: pid=6126
2019-09-11 13:44:20.793 [6126] End queue run: pid=6126
7252 child 6126 ended: status=0x0
7252 normal exit, 0
7252 0 queue-runner processes now running
I believe the issue is something to do with this particular entry in the log:
6134 LOG: retry_defer MAIN
6134 == my@email.com <my@email.com> R=router_for_notifications T=notification_smtp defer (-53): retry time not reached for any host for 'gmail.com'
2019-09-11 13:44:20.793 [6134] xxxx == my@email.com <my@gmail.com> R=router_for_notifications T=notification_smtp defer (-53): retry time not reached for any host for 'gmail.com'
Any ideas?
This thread was automatically locked due to age.