Re: Help with Blat and Gmail

"'Chip' [email protected] [blat]" <[email protected]>
Newsgroups gmane.mail.blat
Message-ID <D5303367F911444EAC69A9D2768CB4E1@chip>
>> Can someone assist?
>>
>> Thanks.
>>
>> Chris


> Sorry, missed the opening square bracket during copy/paste. Entry in 
> stunnel configuration should be similar to:
>
> [SMTP Gmail]
> accept = 127.0.0.1:1099
> connect = smtp.gmail.com:465
> [POP3 Gmail]
> accept = 127.0.0.1:1109
> connect = pop.gmail.com:995

> Gmail needs SSL. Blat does not provide that. So pipe it through a utility 
> like stunnel. If using stunnel (search web for stunnel if needed), the 
> entry in configuration for gmail should be similar to (copied from an old 
> support email):
>
<snipped>
>
> 465 is the port at which gmail listens for receiving on SMTP. And 995 is 
> the port at which it listens for email retrieval using POP3 - is using. 
> These two ports are fixed by gmail so you cannot change then, unless gmail 
> changes them.
>
> In this example it is assumed that your blat is sending email to localhost 
> (same computer as on which stunnel is installed) at port 1099 (to be 
> caught by stunnel and further processed) and your email program (also 
> installed on same computer) is talking to port 1109 (of stunnel) for 
> retrieving email from gmail.
>

Gmail uses SSL on port 465, as shown above.

Gmail also listens on port 587 using TLS, which is purported to be more 
secure than SSL.  The snippet below comes from my stunnel.conf here at home.

        CAfile = cert.pem
        cert = client.pem
        client = yes
        RNDfile = .rnd
        sslVersion = TLSv1
        fips = no

        [gmail smtp]
        accept = 27
        connect = smtp.gmail.com:587
        protocol = smtp


To use stunnel for SSL/TLS support, as required by Gmail, you would tell 
Blat to use IP address 127.0.0.1 as the SMTP server, and the port number 
should be what you have in your stunnel.conf file.  The IP address is 
important, because it tells Windows to send the internet request to the any 
program listening on your port in your computer.  If your stunnel.conf file 
looks just like mine above, then you would want to use "-server 
127.0.0.1:27" on your command line to force Blat to use stunnel for 
providing TLS service to Gmail.

Chip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.