IMAP and authentication...

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
yuri.rj
Posts: 223
Joined: Tue Jan 11, 2011 8:05 pm

Post by yuri.rj »

First you don't need to uncomment this lines:
[pop3s]
accept = 995
connect = 110

[imaps]
accept = 993
connect = 143

[ssmtp]
accept = 465
connect = 25
And i would recommend you to change default smtp/pop3 ports

This is my stunner.conf file:
;
**************************************************************************
; * Service definitions (at least one service has to be defined) *
; **************************************************************************

; Example SSL server mode services

;[pop3s]
;accept = 995
;connect = 110

;[imaps]
;accept = 993
;connect = 143

;[ssmtp]
;accept = 465
;connect = 25

; Example SSL client mode services

[gmail-pop3]
client = yes
accept = 127.0.0.1:1110
connect = pop.gmail.com:995

;[gmail-imap]
;client = yes
;accept = 127.0.0.1:143
;connect = imap.gmail.com:993

[gmail-smtp]
client = yes
accept = 127.0.0.1:1109
connect = smtp.gmail.com:465

; Example SSL front-end to a web server

;[https]
;accept = 443
;connect = 80
; "TIMEOUTclose = 0" is a workaround for a design flaw in Microsoft SSL
; Microsoft implementations do not use SSL close-notify alert and thus
; they are vulnerable to truncation attacks
;TIMEOUTclose = 0

; vim:ft=dosini
In AwareIM i set like this:
Incoming Email Host: 127.0.0.1(awareIM and Stunnel are in the same machine)
Port: 1110

Outgoing Email Host: 127.0.0.1(awareIM and Stunnel are in the same machine)
Port: 1109
[/quote]
corradomatt
Posts: 64
Joined: Wed Jul 06, 2011 6:16 am

Post by corradomatt »

Awesome! Thank you so much yuri.rj - you're the best!!

It worked perfectly. One thing that I didn't notice was on stunnel I had to choose "Configuration" > "Reload stunnel.conf" after I made my changes to the stunnel.conf file before those changes would take effect. After that and with your settings suggestions it works beautifully!!

I have it working great with my gmail account now I need to try it with my Google Apps account. I'll post the results along with complete step-by-step instructions to the Tips and Tricks section of this forum.
yuri.rj
Posts: 223
Joined: Tue Jan 11, 2011 8:05 pm

Post by yuri.rj »

It's awesome, isn't it?

I got that excited too when It worked for me

Glad I could help... And this post on Tips and Tricks will be very helpful too... I hadn't thought of that...
RocketRod
Posts: 907
Joined: Wed Aug 06, 2008 4:22 am
Location: Melbourne

Post by RocketRod »

So will stunnel handle the receiving of email as well? I was told it could only send email.

Cheers Rod
yuri.rj
Posts: 223
Joined: Tue Jan 11, 2011 8:05 pm

Post by yuri.rj »

Rod
Using the configuration above, awareIm will work as a "bridge" and the only thing it will do is transport from port 25/110 to Gmail default ports.

So.... It WILL work for incoming and outgoing e-mail.... I'm using both

Cheers
Yuri
RocketRod
Posts: 907
Joined: Wed Aug 06, 2008 4:22 am
Location: Melbourne

Post by RocketRod »

Sorry just to clarify. I will be able to access email in my gmail Inbox and copy it into my AwareIm app by turning on Incoming emails and using the config you supplied?

Cheers Rod
yuri.rj
Posts: 223
Joined: Tue Jan 11, 2011 8:05 pm

Post by yuri.rj »

Sorry if was not clear before…


The answer is Yes! :D
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Hi!
I whem I use Stunnel with gmail and send it to emails except that on gmail it works great.
But if I send it to some @gmail.com there it goes to spam while if I send it direct from gmail account it is ОК.

Do you have the same problem?
AwareIM 5.1a build 1454, Debian 64bit , MySQL
Post Reply