Mystery solved.
The reason my Blat+stunnel works with port 3325 is because the
stunnel.conf file I quoted (below) is not the active conf file. The conf
file that is functional is:
client = yes
[ssmtp]
accept = 127.0.0.1:3325
connect = smtp.mailserver.com:465
I believe the reason I used a non-standard port was to avoid conflict
with another email server or something...I don't remember now. But, as
long as Blat sends out on port X and stunnel is accepting on port X,
they should connect.
The error you seem to be getting would appear to be more of an
authentication issue, which stunnel doesn't have anything to do with to
my knowledge.
Mike
----------------------------------------------------------------------------------------------------------------------------
Actually, if your Stunnel.conf accepts on local host (127.0.0.1) port
25, and attempts to connect to smtp.gmail.com on port 465, it should work.
Here's the stunnel.conf that I use:
client = yes
protocol = smtp
[smtp]
accept = 25
connect = smtp.mailserver.com:465
Here's the relevant part of my blat sending code
lcMailServer = "localhost" (or 127.0.0.1 works too)
lnPort = 3325
lcUserName = "[email protected]"
lcPassword = "supersecretepassword"
.SendViaBLAT(@lcErrReturn, lcFrom, lcTo, lcSubject, lcBody, @aryAttach,
lcCC, lcBCC, lcMailServer, lnPort, lcUserName, lcPassword, lnPriority,
llHTMLFormat)
(the last line wraps)
Now, you, like me, might be asking why the Blat port is set to 3325, but
stunnel is set to listen on 25. Great question!
As soon as I figure it out, I'll let you know...meanwhile, try it.
I had it figured out (the reason to set the port to 3325 in Blat) last
spring when I got it all working, but I don't remember why now.
Also, GMAIL has a history of being odd, and picky, and odd. If possible
you might try a different SMTP server before trying to get Gmail to work.
Mike
Sytze de Boer wrote:
Mike Copeland, please will you help me
I've tried to follow this thread and I must be one of the dead-stoopid ones
I have used Blat for many years but in this country, the largest ISP has
suddenly decided on this SSL business.
So I have installed STUNNEL as per the suggestions here.
Using Gmail with my tests (and because I use gmail as my personal email
provider)
All I end with is (in the blat.log file)
The SMTP server does not like the sender name.
Have you set your mail address correctly?
My Blat.prg does not make reference to any ports
The Stunnel.conf makes reference to
[gmail-smtp]
client = yes
accept = 127.0.0.1:25
connect = smtp.gmail.com:465
Please what am I not doing
On Sat, Sep 6, 2014 at 8:50 AM, Mike Copeland <[email protected]> wrote:
John, it really is stupid simple...very transparent to install and use.
The only gotcha is if your email app (blat) is using a port that stunnel is
not expecting (listening to). Also, it helps if your email service provider
is using standard ports for SSL/TLS connections. If so, the connection and
transmission of data is so fast that you'll not notice anything has changed.
And after weeks of installation and use on a 7-day-per-week basis, no
problems. Can't ask for more than that!
Mike Copeland
John Weller wrote:
Thanks Mike. I've downloaded the package and will give it a go when I get
back from holiday, I'm away next week.
John Weller
01380 723235
07976 393631
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.