Discussion:
Blat/Gmail Issue
cvg1wby
2009-12-08 16:17:16 UTC
Permalink
i'm trying to use blat to send emails through my gmail account. i've read over a lot of threads on using/configuring stunnel to secure the connection and when i was working on my batch file at home i had everything working. i was able to connect to my gmail account using the preconfigured stunnel.conf file i found in the files section of this group and was sending emails with blat. Now when i'm trying to implement everything at the install location i'm getting an error that says:

Error: Connection to server was dropped.
SMTP server error
Error: Not a socket.
Error: Not a socket.

The contents of my stunnel config file are:

debug = 7
output = log.txt
; Use it for client mode
client = yes
; Service-level configuration
; Google
[SMTP]
accept = 25
connect = smtp.gmail.com:465

and the output from the debug file is:
2009.12.08 10:50:39 LOG7[1624:1276]: RAND_status claims sufficient entropy for the PRNG
2009.12.08 10:50:39 LOG7[1624:1276]: PRNG seeded successfully
2009.12.08 10:50:39 LOG7[1624:1276]: SSL context initialized for service SMTP
2009.12.08 10:50:39 LOG7[1624:1276]: SSL context initialized for service pop3
2009.12.08 10:50:39 LOG5[1624:1276]: stunnel 4.28 on x86-pc-mingw32-gnu with OpenSSL 0.9.8l 5 Nov 2009
2009.12.08 10:50:39 LOG5[1624:1276]: Threading:WIN32 SSL:ENGINE Sockets:SELECT,IPv6
2009.12.08 10:50:39 LOG5[1624:716]: No limit detected for the number of clients
2009.12.08 10:50:39 LOG7[1624:716]: FD 240 in non-blocking mode
2009.12.08 10:50:39 LOG7[1624:716]: SO_REUSEADDR option set on accept socket
2009.12.08 10:50:39 LOG7[1624:716]: SMTP bound to 0.0.0.0:25
2009.12.08 10:50:39 LOG7[1624:716]: FD 248 in non-blocking mode
2009.12.08 10:50:39 LOG7[1624:716]: SO_REUSEADDR option set on accept socket
2009.12.08 10:50:39 LOG7[1624:716]: pop3 bound to 0.0.0.0:110
2009.12.08 10:50:39 LOG7[1624:716]: SMTP accepted FD=264 from 127.0.0.1:1440
2009.12.08 10:50:39 LOG7[1624:716]: Creating a new thread
2009.12.08 10:50:39 LOG7[1624:716]: New thread created
2009.12.08 10:50:39 LOG7[1624:2580]: SMTP started
2009.12.08 10:50:39 LOG7[1624:2580]: FD 264 in non-blocking mode
2009.12.08 10:50:39 LOG5[1624:2580]: SMTP accepted connection from 127.0.0.1:1440
2009.12.08 10:50:39 LOG7[1624:2580]: FD 288 in non-blocking mode
2009.12.08 10:50:39 LOG6[1624:2580]: connect_blocking: connecting 74.125.113.109:465
2009.12.08 10:50:39 LOG7[1624:2580]: connect_blocking: s_poll_wait 74.125.113.109:465: waiting 10 seconds
2009.12.08 10:50:49 LOG3[1624:2580]: connect_blocking: s_poll_wait 74.125.113.109:465: timeout
2009.12.08 10:50:49 LOG5[1624:2580]: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
2009.12.08 10:50:49 LOG7[1624:2580]: SMTP finished (0 left)

I'm using blat version 2.6.2 and the command i'm sending is:
blat - -body "test" -to ***@yahoo.com -u ***@gmail.com -pw .... -f ***@gmai.com
where the ...'s are filled in with the appropriate information.

Sorry for the long post. any help would be greatly appreciated. I have a lot of people breathing down my neck to get this setup and working. Thanks in advance
cvg1wby
2009-12-08 18:19:35 UTC
Permalink
i almost forgot, i'm also using -server 127.0.0.1 when i'm calling blat from the command line
Post by cvg1wby
Error: Connection to server was dropped.
SMTP server error
Error: Not a socket.
Error: Not a socket.
debug = 7
output = log.txt
; Use it for client mode
client = yes
; Service-level configuration
; Google
[SMTP]
accept = 25
connect = smtp.gmail.com:465
2009.12.08 10:50:39 LOG7[1624:1276]: RAND_status claims sufficient entropy for the PRNG
2009.12.08 10:50:39 LOG7[1624:1276]: PRNG seeded successfully
2009.12.08 10:50:39 LOG7[1624:1276]: SSL context initialized for service SMTP
2009.12.08 10:50:39 LOG7[1624:1276]: SSL context initialized for service pop3
2009.12.08 10:50:39 LOG5[1624:1276]: stunnel 4.28 on x86-pc-mingw32-gnu with OpenSSL 0.9.8l 5 Nov 2009
2009.12.08 10:50:39 LOG5[1624:1276]: Threading:WIN32 SSL:ENGINE Sockets:SELECT,IPv6
2009.12.08 10:50:39 LOG5[1624:716]: No limit detected for the number of clients
2009.12.08 10:50:39 LOG7[1624:716]: FD 240 in non-blocking mode
2009.12.08 10:50:39 LOG7[1624:716]: SO_REUSEADDR option set on accept socket
2009.12.08 10:50:39 LOG7[1624:716]: SMTP bound to 0.0.0.0:25
2009.12.08 10:50:39 LOG7[1624:716]: FD 248 in non-blocking mode
2009.12.08 10:50:39 LOG7[1624:716]: SO_REUSEADDR option set on accept socket
2009.12.08 10:50:39 LOG7[1624:716]: pop3 bound to 0.0.0.0:110
2009.12.08 10:50:39 LOG7[1624:716]: SMTP accepted FD=264 from 127.0.0.1:1440
2009.12.08 10:50:39 LOG7[1624:716]: Creating a new thread
2009.12.08 10:50:39 LOG7[1624:716]: New thread created
2009.12.08 10:50:39 LOG7[1624:2580]: SMTP started
2009.12.08 10:50:39 LOG7[1624:2580]: FD 264 in non-blocking mode
2009.12.08 10:50:39 LOG5[1624:2580]: SMTP accepted connection from 127.0.0.1:1440
2009.12.08 10:50:39 LOG7[1624:2580]: FD 288 in non-blocking mode
2009.12.08 10:50:39 LOG6[1624:2580]: connect_blocking: connecting 74.125.113.109:465
2009.12.08 10:50:39 LOG7[1624:2580]: connect_blocking: s_poll_wait 74.125.113.109:465: waiting 10 seconds
2009.12.08 10:50:49 LOG3[1624:2580]: connect_blocking: s_poll_wait 74.125.113.109:465: timeout
2009.12.08 10:50:49 LOG5[1624:2580]: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
2009.12.08 10:50:49 LOG7[1624:2580]: SMTP finished (0 left)
where the ...'s are filled in with the appropriate information.
Sorry for the long post. any help would be greatly appreciated. I have a lot of people breathing down my neck to get this setup and working. Thanks in advance
Chip
2009-12-15 02:58:23 UTC
Permalink
Post by cvg1wby
Post by cvg1wby
i'm trying to use blat to send emails through my gmail account. i've
read over a lot of threads on using/configuring stunnel to secure the
connection and when i was working on my batch file at home i had
everything working. i was able to connect to my gmail account using the
preconfigured stunnel.conf file i found in the files section of this
group and was sending emails with blat. Now when i'm trying to implement
i almost forgot, i'm also using -server 127.0.0.1 when i'm calling blat
from the command line
<snip>

I went and downloaded the stunnel portable for GMail to see how stunnel is
configured. Although I am not an expert, I do question whether some options
are missing that might be effecting your client's connection, and Art's as
well.

-------------

My stunnel.conf file contains the following lines:

CAfile = cert.pem
cert = client.pem
client = yes
RNDfile = .rnd

[att smtp]
accept = 25
connect = imailhost.worldnet.att.net:465

[att pop3]
accept = 110
connect = ipostoffice.worldnet.att.net:995

[att nntp]
accept = 119
connect = inetnews.worldnet.att.net:563

-------------

The stunnel.conf that I downloaded contains these lines, minus all lines
that are just comments:


; Use it for client mode
client = yes

; Service-level configuration

; Google
[SMTP]
accept = 25
connect = smtp.gmail.com:465

[pop3]
accept = 110
connect = pop.gmail.com:995

-------------

What I noticed is that three of the first four lines from my file do not
exist in the portable version. Is it possible that the missing lines could
make a difference? The .pem and .rnd files can be created with teh stunnel
configuration program, if you need them.

Another idea that is probably more to the point, the client's firewall
program (McAfee, Norton, M$ Windows, etc.) is _likely_ blocking Blat from
connecting to the outside world. Check the firewall settings.
--
Chip
Art Povelones
2009-12-13 17:32:31 UTC
Permalink
This post might be inappropriate. Click to display it.
Tim Musson
2009-12-13 18:35:14 UTC
Permalink
This post might be inappropriate. Click to display it.
Art Povelones
2009-12-14 02:04:46 UTC
Permalink
Tim: I was referring to the stunnel version numbers, from website
http://www.stunnel.org

I downloaded stunnel 4.29, and that is what my post refers to.

I did not download stunnel ver 3.26. I suspect, but don't know, that there
is a difference in the service level params requiring "protocol = smtp" with
outlook servers, and maybe Gmail, too.

Art
Post by Tim Musson
Hey Art,
Thanks for the info!
You mention version 3 and 4, but not what software it is version
numbers for...? Just curious.
Loading...