nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I'm confused


From: Ralph Corderoy
Subject: Re: I'm confused
Date: Mon, 09 Dec 2019 13:09:23 +0000

Hi Norm,

David wrote:
> post shouldn't hang, of course.
>
> Can you verify that you can connect to the gmail smtp server by
> entering the following at a shell prompt:
>
>     telnet smtp.gmail.com 587
>
> If that responds, then hit ^] (Ctrl right bracket), then enter "quit"
> at the telnet prompt.

If that goes well, you could try using mhmail(1) to send an email using
Gmail as your outgoing SMTP server.  I just did this and it worked.

Ensure your ~/.netrc has permissions 0600 and has the line

    machine smtp.gmail.com login address@hidden password foobar

Change foobar in that line to your password.

Send the email to me by pasting this command.

    seq 314 |
    fmt |
    mhmail -profile -to address@hidden \
        -from address@hidden \
        -subject 'Test using mhmail.' -msgid \
        -server smtp.gmail.com -port 587 -sasl \
        -user address@hidden -tls -snoop

Text will now appear, starting something like

    Trying to connect to "smtp.gmail.com" ...
    Connecting to 66.102.1.108:587...
    <= 220 smtp.gmail.com ESMTP 60sm28745245wrn.86 - gsmtp

It should hopefully end with

    (tls-encrypted) => DATA
    (tls-decrypted) <= 354  Go ahead...
    (tls-encrypted) => .
    (tls-decrypted) <= 250 2.0.0 OK...
    (tls-encrypted) => QUIT
    (tls-decrypted) <= 221 2.0.0 closing connection...

-- 
Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]