Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vmail to Email (gmail) using embedded 2

Status
Not open for further replies.

shardian

Programmer
Joined
Mar 7, 2005
Messages
287
Location
AU
Hi guys.

Not sure if this is helpful at all, or if someone else has already found another way, but I've managed to get vm to email working from an embedded system using a Gmail account.

All that was required was a bit of software called Stunnel and a few extra minutes to configure. The software basically accepts an email from the IP Office and adds SSL to it before allowing the connection to the Gmail server. The software is freely available from:

In the IP Office, set the SMTP server to be the IP address of the PC running Stunnel, and set the port to something free. (I used 8111) Set the send from address as the gmail account you wish to send from. Tick Server Req's Auth and enter the Gmail account login and password.

Configure your user email settings as required and install Stunnel on the PC with the IP address as defined earlier.

When installing the software, a command prompt will ask for some location details - I just entered localhost for the server name and junk data for location information.

Once its installed, you will need to run it and right click its icon in the system tray. Then click on edit stunnel.conf.

Find the section titled [gmail-smtp] and delete the semicolons (;) from the start of each line. Then change the port number at the end of the loopback address to whatever you set as the smtp port in the IP Office.

Should look like:

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

Save the file and then click back on the icon like earlier and this time select reload stunnel.conf

Now just test by leaving a voicemail for a user. I watched the email leave the system using monitor and also watched the log window for Stunnel which can be access by clicking on the icon.

Hopefully this is helpful for some of you. Let me know if you have any problems and I'll help if I can.
 
I´m having some trouble to download the stunnel. I will try it later.

Thanks.
 
excellent

can you write this up as an FAQ - just a copy and paste will do :-)



ACSS - SME
General Geek

CallUsOn.png


1832163.png
 
@ shardian

Error resolving 'smtp.gmail.com': Neither nodename nor servname known (EAI_NONAME)

And the IPO get a error for 8111 in the smtp port.

Do you have this error in the stunnel log windows ?
 
The warning from the IPO is just because it isn't the usual port 25. Nothing to worry about there.

Not being able to resolve gmail's server is another issue. Drop to a command prompt and ping smtp.gmail.com to make sure that whatever DNS server you are using is working correctly.

I never got that error, but I'd say its a problem with a DNS server not being set if you're using static addressing.
 
ping smtp.gmail.com is working ok. I don´t know what the hell is going on.

Maybe a reboot could solve it ?? :-)
 
Roger try;


pop.gmail.com:995

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged (Avaya Search tool )
______________________________________
 
Looks like we have a progress, but....

Service pop3s accepted connection from [my address:port]
2011.10.13 15:04:28 LOG5[5476:7752]: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
2011.10.13 15:05:41 LOG5[5476:916]: Service pop3s accepted connection from [my address:port]


Any ideas will be appreciated.
 
Try to tick the option under password in he SMTP tab

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged (Avaya Search tool )
______________________________________
 
OK. I will try and post my results here.

Thanks,

Cheers,
 
I´ve done both suggestions with no good result.

The server is sending thru port 4096 till 4210.
 
I am not able to save the file after editing stunnel.conf. I am getting access is denied. I have tried this on two diffferent PCs and get the same error.
 
Got the file to save (permissions issues) but still cant get the messages to pass through to gmail. My setup is the exact same as above. I have tried both smtp and pop in the file. No luck so far.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top