Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: johnlobe on January 25, 2007, 10:39:11 AM

Title: Possible to use smtp.gmail.com?
Post by: johnlobe 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?
Title: Possible to use smtp.gmail.com?
Post by: byte 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
Title: Possible to use smtp.gmail.com?
Post by: william_syd 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 (http://search.cpan.org/~gbarr/libnet-1.19/Net/SMTP.pm)

What would help you is if it used Net::SMTP::SSL (http://search.cpan.org/dist/Net-SMTP-SSL/lib/Net/SMTP/SSL.pm)

If you want it than make a NFR in the bug tracker.
Title: Re: Possible to use smtp.gmail.com?
Post by: william_syd 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. (http://bugs.contribs.org/show_bug.cgi?id=2226#c21)