Configure SendMail to go through GMAIL as SMTP server

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
Hello !

I'd like to use my GMail account as SMTP server.

Has anyone done that ?

Is it feasible ?

I have configured mine but, when I do send the email, I have a problem at the session .

Here's a session transcript :

Connecting to mail server.
Connected.
220 mx.google.com ESMTP 9sm972217yws.28
EHLO jose-pc
250-mx.google.com at your service, [189.35.124.65]
250-SIZE 35651584
250-8BITMIME
250 ENHANCEDSTATUSCODES
AUTH LOGIN
530 5.7.0 Must issue a STARTTLS command first. 9sm972217yws.28
530 5.7.0 Must issue a STARTTLS command first. 9sm972217yws.28


What's this STARTTTLS issue ?

How do I configure it ?

Thanks in advance !
 

dim

Dimitry Andric
May 31, 2008
203
0
Netherlands
#2
On 2008-12-15 16:07, JOSE ADRIANO BALTIERI wrote:

> 530 5.7.0 Must issue a STARTTLS command first. 9sm972217yws.28
> 530 5.7.0 Must issue a STARTTLS command first. 9sm972217yws.28
>
> What's this STARTTTLS issue ?
It's for encrypting the SMTP traffic (using SSL/TLS). I don't think
TCC's sendmail command supports it. At least, I can find no options
regarding SSL or TLS anywhere in the options dialog.
 
#3
JOSE ADRIANO BALTIERI wrote:
|
| I'd like to use my GMail account as SMTP server.

Did you mean "SMTP client"?

Actually, the computer where you want to receive mail needs to run an SMTP
client program, to connect to GMAIL, which acts as the SMTP server. The
"account" itself is just a data base where the server collects your mail,
and from which you can access it.
--
Steve
 
#5
JOSE ADRIANO BALTIERI wrote:
| ---Quote (Originally by Steve Fábián)---
| JOSE ADRIANO BALTIERI wrote:
||
|| I'd like to use my GMail account as SMTP server.
|
| Did you mean "SMTP client"?
|
| -
| Steve
| ---End Quote---
| Steve :
|
| Simply put, I want to use SENDMAIL and use GMAIL as account.
|
| How do I configure it ?

Unfortunately I do not think SENDMAIL supports it, as dim already reported.
AFAIK GMAIL access is browser-based. SENDMAIL works well with standard SMTP
and MAPI mail servers only.
--
Steve
 
#6
On Mon, 15 Dec 2008 10:29:45 -0600, Steve Fábián <> wrote:


>JOSE ADRIANO BALTIERI wrote:
>|
>| I'd like to use my GMail account as SMTP server.
>
>Did you mean "SMTP client"?
>
>Actually, the computer where you want to receive mail needs to run an SMTP
>client program, to connect to GMAIL, which acts as the SMTP server. The
>"account" itself is just a data base where the server collects your mail,
>and from which you can access it.
SENDMAIL is the SMTP client.

STARTTLS is used to initiate SSL. I don't think SENDMAIL has that capability.

I have heard of folks using BLAT (an SMTP client without SSL) successfully
together with "STUNNEL" (see http://www.stunnel.org/ ... "Stunnel is a program
that allows you to encrypt arbitrary TCP connections inside SSL"). Perhaps it
would also work with SENDMAIL.

FWIW, around here, mx.google.com doesn't seem to exist.
 
#7
OK.

I suspected about SSL but was not sure. One of the things I like GMAIL is that it uses SSL.

However, nowadays I use SENDMAIL perfectly on a normal basis with our servers here at the University.

I just wanna send some private emails through GMAIL. Not a big deal.

I consider this thread closed.

Thank you all who have cooperated ! Great product 4NT, I love it. Wonderful comunity of users.

BTW, what's going on with Mr Rex ? I knew he went to a surgery. Hope he's doing fine !

Thanks !
 
#8
JOSE ADRIANO BALTIERI wrote:
| BTW, what's going on with Mr Rex ? I knew he went to a surgery. Hope
| he's doing fine !

He is back at work, though typing with only one hand. For those of us who
learned to type with all fingers, this is a major slow-down. Let's hope and
pray it won't last too long!
--
Steve
 

dim

Dimitry Andric
May 31, 2008
203
0
Netherlands
#9
On 2008-12-15 18:45, Steve Fábián wrote:

> Unfortunately I do not think SENDMAIL supports it, as dim already reported.
> AFAIK GMAIL access is browser-based. SENDMAIL works well with standard SMTP
> and MAPI mail servers only.
GMail's SMTP servers are quite standard, but simply require STARTTLS
(e.g. encryption) before any authentication takes place. This prevents
your username and password going over the net in cleartext.
 
Dec 19, 2010
18
0
#11
And in tcmd.exe menu 'Options' > 'Configure tcc' > 'Internet"
set

server = smtp.gmail.com
address=<your Gmail email address>
user=<your Gmail email address>
password=<your Gmail password>
port = 587

That is tested and works as expected.

Similar for 'sendhtml'