This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Tip: Using gmail smtp for notifications or as a mail relay

I was using Verizon's smart host as a mail relay for notifications in the UTM, but Verizon has started blocking my emails for an unspecified reason.

Rather than messing with Verizon, I've now configured the UTM to relay notifications through gmail.
This will work to the same gmail account, to a different gmail account, and should work to any email address.

I'm only using it in the notifications settings, but it might work for a full smarthost in the SMTP settings... I wouldn't try it for anything other than personal use though as your email address will probably get added to all the mail headers.

Setup:
in Management->Notifications->Advanced,
set SMTP server to 'smtp.gmail.com' using a DNS Host Defintion
SMTP Port: 587
Use TLS: checked
Authentication: checked
Username: your gmail address
Password:  your gmail password

If you are using 2-factor auth with gmail, you'll need to setup an App Password for the UTM; see https://support.google.com/accounts/answer/185833?hl=en

Troubleshooting:
The easiest way to force a notification email is to try logging in to webadmin or SSH with a bad password.
Check the Notification Log (notifier.log) for errors.

Barry



This thread was automatically locked due to age.
Parents
  • This was the solution I was looking for since my ISP began blocking port 25 from their residential networks.  I first tried using their SMTP server as a smarthost, only to find that's just not possible through them.  Found this post, tried it, and BINGO.  Back in business.  Thanks.  

  • Hi, I've just loaded UTM 9.501-5 and have it currently connected to ONLY the internal LAN (i.e. I've yet to introduce it as "the" connection to my ISP).

    In Management > Notifications > Advanced I've clicked the "slider" (top right hand corner to "activate" the advanced content) and when I try to enter the "smtp.gmail.com" FQN in the SMTP Server field it's input inhibited. There are two icons to the right of it namely the folder icon (Browse) and the "+" to add.

    Any ideas as to "how" I might enter the FQN here please?

    Many thanks, Steve

    - Regards, Steve
    PrivatePICO-PC, Intel J1900 Quad Core, 2.42GHz, 4GB RAM, 240GB SSD, 4 x 1GB INTEL Ethernet, UTM 9.510-5 Home License

  • Hi, Steve, and welcome to the UTM Community!

    When you ask a question, it's always a good idea to include a picture of what you're seeing.  In this case, your description is good.  The 'Server' field is looking for an IP address.  Click on the green + and add a Network definition of 'Type: DNS Host' with your FQDN.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • Hi, Steve, and welcome to the UTM Community!

    When you ask a question, it's always a good idea to include a picture of what you're seeing.  In this case, your description is good.  The 'Server' field is looking for an IP address.  Click on the green + and add a Network definition of 'Type: DNS Host' with your FQDN.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
No Data