Koozali.org: home of the SME Server

Possible to use smtp.gmail.com?

johnlobe

Possible to use smtp.gmail.com?
« on: January 25, 2007, 10:39:11 AM »
I have a vanilla server-only setup and would like SME 7.1 to use smtp.gmail.com for outgoing mail leaving my network. Can it be done?

This should be a basic thing to setup, but I can't seem to get it working.
I can successfully get Outlook on a client machine to use smtp.gmail.com, but not SME.

From the server-manager I enter:
Address of Internet provider's mail server = smtp.gmail.com:465
SMTP Authentication for Internet provider = Enabled
(The correct Mail server user id)
(The correct Mail server password)

Result in the qmail log is:
Connected_to_127.0.0.1_but_greeting_failed./Remote_host_said:_451_Upstream_SMTP_server_not_available/

Why can I use this smtp server (port 465) from an Outlook client and not SME?
What else needs to be done to get this to work on SME?

Offline byte

  • *
  • 2,183
  • +2/-0
Possible to use smtp.gmail.com?
« Reply #1 on: January 25, 2007, 11:31:44 AM »
Have a look at this thread see if it helps...

http://forums.contribs.org/index.php?topic=34440.0
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Possible to use smtp.gmail.com?
« Reply #2 on: January 25, 2007, 12:40:05 PM »
Quote
smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587


http://mail.google.com/support/bin/answer.py?answer=38343

It would appear that it's the lack of SSL support in SME that is causing you problems.

The work is done by /usr/local/sbin/smtp-auth-proxy.pl which uses Net::SMTP

What would help you is if it used Net::SMTP::SSL

If you want it than make a NFR in the bug tracker.
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Possible to use smtp.gmail.com?
« Reply #3 on: March 07, 2007, 04:54:02 AM »
Quote from: "johnlobe"
I have a vanilla server-only setup and would like SME 7.1 to use smtp.gmail.com for outgoing mail leaving my network. Can it be done?

This should be a basic thing to setup, but I can't seem to get it working.
I can successfully get Outlook on a client machine to use smtp.gmail.com, but not SME.

From the server-manager I enter:
Address of Internet provider's mail server = smtp.gmail.com:465
SMTP Authentication for Internet provider = Enabled
(The correct Mail server user id)
(The correct Mail server password)

Result in the qmail log is:
Connected_to_127.0.0.1_but_greeting_failed./Remote_host_said:_451_Upstream_SMTP_server_not_available/

Why can I use this smtp server (port 465) from an Outlook client and not SME?
What else needs to be done to get this to work on SME?


You might find some improvement with gmail in Bug 226.
Regards,
William

IF I give advise.. It's only if it was me....