How do I use VA with Google Mail (Gmail) ?

Gmail is a free internet mail service offered by Google. Gmail is primarily intended to be a webmail service, but it is also possible to access Gmail using POP3 or IMAP and SMTP.

In order to access Gmail via POP3 and SMTP it is necessary to connect to Google's mail servers using an SSL-encrypted connection – this is required by Google, and is good practice as without it the login credentials (user ID and password) for the Gmail service would be transmitted across the internet as clear text.

To use SSL with VA you will need to use an SSL proxy – see the FAQ How do I use VA with SSL services?

Configuring Gmail for POP/SMTP

You need to enable your Gmail account for POP3 (or IMAP, but VA operates more satisfactorily with POP3) and SMTP. To do this go to the Google Mail website and log into your Gmail account. Select the "Settings" page and select the tab headed "Forwarding and POP3/IMAP". You can enable POP3 mail collection for all mail (all your messages currently stored in your Gmail account and all new mail) or for new mail only. Pick one or the other, and click on "Save changes" at the bottom of the screen.

If you plan to read your Gmail mail primarily with VA you may want to tell GMail to delete mail from the mailbox once it has been collected using POP3. You can do this by selecting the appropriate action from the list under "When messages are accessed with POP". Note that when using IMAP it is usual to leave all messages on the server until they are explicitly deleted.

Configuring VA to use Gmail via an SSL proxy

The instructions here assume that you will use a local SSL proxy such as stunnel, running on the same PC as VA (localhost).

Set up a GMail service in VA.

  • Set up the service to collect mail using POP3 and to send mail using SMTP.
  • Enter "localhost" for the both "Incoming mail" and "Outgoing mail".
  • Enter your Gmail address (e.g. "my.name@gmail.com" – including the "@gmail.com" part) as the user name and your Gmail password as the password.
  • Tick the "I have to logon with a username and password to send Email" checkbox.

Once the service has been created go to File | "Comms setup..." in VA, open your new service, and click the "Advanced" button on the mail tab.

Set the "Incoming (POP3)" port and the "Outgoing (SMTP)" ports. These are the TCP/IP ports that VA will use to talk to the SSL proxy (e.g. stunnel). The values that you use here can be the standard values for secure POP3 and SMTP (995 and 587) if you are not using them for any other service, or you can use any port numbers that are not defined for standard services and are not in use by any other software on your PC. I have used 5010 and 5011 in the example below.

If you primarily access your Gmail account from the web you may also want to uncheck "Delete read mail" and set "Delete mail older than (days)" to 0 so that VA won't delete the mail once it has been collected.

Set up your SSL proxy

Set up your proxy to forward those chosen ports to Google.

  • Configure the proxy to listen on port 5010 (or whatever you chose for the POP3 port) and connect to pop.gmail.com on port 995
  • Configure the proxy to listen on port 5011 (or whatever you chose for the SMTP port) and connect to smtp.gmail.com on port 465 (you're also supposed to be able to use 587, which is standard, but it doesn't seem to work)

If you're using stunnel you'll want to put something like this into stunnel.conf:

[gmail-pop3]
accept = 5010
connect = pop.gmail.com:995
 
[gmail-smtp]
accept = 5011
connect = smtp.gmail.com:465

Note that the POP3 server is pop.gmail.com (no "3").

Finally, start (or restart) stunnel, and you should be able to connect to Gmail from VA.

 
vaosfaq/usewithgmail.txt · Last modified: 13.08.2008 15:33 by daniel
 
Recent changes RSS feed Driven by DokuWiki