delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE |
X-Spam-Check-By: | sourceware.org |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:x-originating-ip:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type:content-transfer-encoding:x-gm-message-state; bh=eREKmlZZv+00YQjkjPKqdOhoUkp2ufOHHeF/z7HhTF8=; b=ew80r1wZjx9Vl3+kaQpMelqfjh4oekkrLRahdh1KF3jh/d5XEeo+1oXOtifZAinrHA xWd8FIPrxfQnrFqVXFtqPOlbS9Lvznw//OrXBiKlg1HFX2nfAUkberZnhQKssFeBgKl/ p97qC5HGxq9/VGuJhKh6VWqSIP4T0yb660a5c+8VIY1Vp6xxqS9VVScCzvCoSA4RXUOa g49g1caSdV16dCU+dQdt9FJ+6p5vFQKyZNzMhsE3mMOuXOWIigVKNk0c0aBqXk9UqbOs +WrVaqLXt737cS3OCvtlSoar+8vonG7BMvkIEqouYf4U4gb4VZQr2j68D/ONKuwuKKUj 6Feg== |
X-Received: | by 10.50.53.161 with SMTP id c1mr2738888igp.95.1359295095985; Sun, 27 Jan 2013 05:58:15 -0800 (PST) |
MIME-Version: | 1.0 |
In-Reply-To: | <ke1p21$gjj$1@ger.gmane.org> |
References: | <000601cdfc07$3caa3250$b5fe96f0$@gmail.com> <ke1p21$gjj$1 AT ger DOT gmane DOT org> |
From: | Robert Pendell <shinji+cygwin AT elite-systems DOT org> |
Date: | Sun, 27 Jan 2013 08:57:45 -0500 |
Message-ID: | <CAAeCd-NCe9ASPmjCB9OH6HnTDXd31kchkBmnX2NCjQw0uMMTkQ@mail.gmail.com> |
Subject: | Re: email to gmail using /usr/bin/email |
To: | cygwin AT cygwin DOT com |
X-Gm-Message-State: | ALoCoQl2fdHa7l6XkbNoLBmJZ0hoDQPxTEpjgbtFRxpAEqPafa6RBBvmhFs00sPYsYDmBHi+RTTF |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id r0RDwTOQ007551 |
On Sat, Jan 26, 2013 at 6:32 PM, René Berber <> wrote: > > On 1/26/2013 2:53 PM, JJ wrote: >> >> I have spent several hours looking for tips on using the email binary in >> Cygwin to send email via Gmail from the command line. The man page and help >> output don’t seem to clarify this. I seem to be timing out or not >> connecting to the gmail smtp server, but I don’t get any errors from email, >> even with the –V flag. It just hangs at: >> >> Connecting to server smtp.gmail.com on port 465 > > > Wrong port. > > >> Greeting the SMTP server... >> ... >> Here is the command I am using in my script. This worked fine when I used >> another ISP, but gmail is pickier. >> >> email -r smtp.gmail.com -f <user>@gmail.com -n me -s "backup for %DATE%" -a >> d:\backup.log <sameuser>@gmail.com >> >> I ran email-config and specified my userid, password, smtp server, port >> number, and to use TLS. I have also specified the port and used the tls >> flag in the command line. Sending email from outlook on the same computer >> works fine. > > > With the same settings? I doubt it. > > >> Any documentation on email with SSL or tips on alternatives would be greatly >> appreciated. > > > Read the help pages on Gmail. > -- > René Berber Actually 465 works fine. Although I'm not entirely sure it is actually TLS. It will not work with the starttls parameter on openssl as it just stalls but would take the connection normally. Connection Log: http://pastebin.com/2vd3S7rL Anyways try without defining TLS for that port and if you can just indicate it as normal SSL. Alternatively check the Gmail docs for the correct TLS port (which isn't 465). This is a configuration issue at this point and not entirely relevant to cygwin. P.S. - I just noticed that it appears to be ssmtp so there is no "normal" SSL in the config. You will need to use the actual TLS port and not 465 in this config. However 465 does work and likely works fine in Outlook. (*Resending as I forgot to change to plain text mode >.<) Robert Pendell A perfect world is one of chaos. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |