The pfSense Store

Author Topic: Email notifications with gmail, on 2.0.1  (Read 1323 times)

0 Members and 1 Guest are viewing this topic.

Offline bdaniel7

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Email notifications with gmail, on 2.0.1
« on: April 02, 2012, 01:58:37 pm »
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

Offline bdaniel7

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Email notifications with gmail, on 2.0.1
« Reply #1 on: April 03, 2012, 01:35:32 am »
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.

Offline ptt

  • Hero Member
  • *****
  • Posts: 1126
  • Karma: +0/-0
    • View Profile
Re: Email notifications with gmail, on 2.0.1
« Reply #2 on: April 03, 2012, 04:50:01 pm »
Check the attached IMG:

Offline bdaniel7

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Email notifications with gmail, on 2.0.1
« Reply #3 on: April 04, 2012, 12:38:28 am »
Yeah, port 465 fixed the problem.

Thank you.

Offline rvsvenkat

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Email notifications with gmail, on 2.0.1
« Reply #4 on: May 17, 2012, 10:05:34 am »
Hello,

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

regards
Venkat