Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Email notifications with gmail, on 2.0.1

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 3.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bdaniel7
      last edited by

      Hello,

      I'm running 2.0.1-RELEASE and I'm trying to set up the email notifications using gmail.
      I'm using my Google Apps account as follows
      Email server: smtp.gmail.com
      Smtp port: 587
      Enable SSL/TLS: yes

      When I save the configuration I don't get any test message and in the logs I see the following:

      Apr 2 21:43:48 filterdns: host_dns: failed looking up "gmai": hostname nor servname provided, or not known
      Apr 2 21:39:25 php: /system_advanced_notifications.php: Could not send the message to xxxxx@gmail.com – Error: could not connect to the host "smtp.gmail.com": ??

      I checked several times the configuration because I don't understand why "gmai" is ever used and what "filterdns" is.
      And filterdns: host_dns: failed looking up "gmai": hostname nor servname provided, or not known occurs several times in the log.

      I tried also to use smtp port 25, no ssl but I get
      php: /system_advanced_notifications.php: Could not send the message to xxxx@gmail.com -- Error: 530 5.7.0 Must issue a STARTTLS command first. e6sm36009869wix.8

      I tried also the solution from here: http://forum.pfsense.org/index.php/topic,31580.0.html but with no luck.

      Any ideas why it doesn't work?

      Daniel

      1 Reply Last reply Reply Quote 0
      • B
        bdaniel7
        last edited by

        The strange thing is that in my home network, behind the firewall, I have an application which successfully sends email notifications, using the same gmail settings.

        1 Reply Last reply Reply Quote 0
        • pttP
          ptt Rebel Alliance
          last edited by

          Check the attached IMG:

          SMTP_E-Mail.PNG
          SMTP_E-Mail.PNG_thumb

          1 Reply Last reply Reply Quote 0
          • B
            bdaniel7
            last edited by

            Yeah, port 465 fixed the problem.

            Thank you.

            1 Reply Last reply Reply Quote 0
            • R
              rvsvenkat
              last edited by

              Hello,

              I could get only the test messages but not the alerts. Can anyone help me in this regard.

              regards
              Venkat

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.