1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Configure SendMail to go through GMAIL as SMTP server

Discussion in 'Support' started by JOSE ADRIANO BALTIERI, Dec 15, 2008.

  1. JOSE ADRIANO BALTIERI

    Joined:
    Jul 10, 2008
    Messages:
    18
    Likes Received:
    0
    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 !
     
  2. dim

    dim Dimitry Andric

    Joined:
    May 31, 2008
    Messages:
    203
    Likes Received:
    0
    On 2008-12-15 16:07, JOSE ADRIANO BALTIERI wrote:

    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. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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
     
  4. JOSE ADRIANO BALTIERI

    Joined:
    Jul 10, 2008
    Messages:
    18
    Likes Received:
    0
    Steve :

    Simply put, I want to use SENDMAIL and use GMAIL as account.

    How do I configure it ?
     
  5. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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. vefatica

    Joined:
    May 20, 2008
    Messages:
    8,053
    Likes Received:
    30
    On Mon, 15 Dec 2008 10:29:45 -0600, Steve Fábián <> wrote:


    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. JOSE ADRIANO BALTIERI

    Joined:
    Jul 10, 2008
    Messages:
    18
    Likes Received:
    0
    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. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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
     
  9. dim

    dim Dimitry Andric

    Joined:
    May 31, 2008
    Messages:
    203
    Likes Received:
    0
    On 2008-12-15 18:45, Steve Fábián wrote:

    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.
     
  10. knudvaneeden

    Joined:
    Dec 19, 2010
    Messages:
    18
    Likes Received:
    0
    Use the /SSL switch, e.g.

    sendmail /SSL=2 "john.doe@gmail.com" "this is my subject" @c:\temp\thisismyemailbody.txt
     
  11. knudvaneeden

    Joined:
    Dec 19, 2010
    Messages:
    18
    Likes Received:
    0
    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'
     

Share This Page