[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]
Sending receiving emails using VM and gmail
- To: Emacspeak MailingList <emacspeak@xxxxxxxxxxx>
- Subject: Sending receiving emails using VM and gmail
- From: Kalyan Mukherjea <kalyan.infinity@xxxxxxxxxxx>
- Date: Sat, 28 Oct 2006 02:18:12 -0700 (PDT)
- Delivered-To: priestdo@xxxxxxxxxxx
- Delivered-To: emacspeak@xxxxxxxxxxx
- DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:cc:subject:date:message-id; b=H4nBs4TAv9go+3hgRgau/G0LEio4SK/lplcL1Kt1AomnvocqNJwCNzX5JY31HyvRJmfr8xEFqFhcIMT2bAlbJC5C0d4EpthbhvWm5fAeR3FeRbHkqSubwjdyXY47khGM5mPzAKWSrPAqheErSMETQcbqrzIQQ7JWnzeacAF7Kko=
- List-Help: <mailto:emacspeak-request@xxxxxxxxxxx?subject=help>
- List-Post: <mailto:emacspeak@xxxxxxxxxxx>
- List-Subscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=subscribe>
- List-Unsubscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=unsubscribe>
- Old-Return-Path: <kalyan.infinity@xxxxxxxxxxx>
- Resent-Date: Sat, 28 Oct 2006 08:05:54 -0400 (EDT)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <m_gI6.A.AqB.ie0QFB@xxxxxxxxxxx>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
Hi Lucas,
I visited Bill's blog you pointed to. I had briefly toyed with the
idea of using Postfix etc to send emails through
smtp.gmail.com. But it seemed very complicated. I use msmtp which
is good enough for a single user system like mine. Bill's code for
getting mail from gmail seemed rather long.
I use stunnel to fetch my mail from gmail. The procedure is quite
simple:
First check that stunnel id installed by opening a root shell(C-e
C-r) and which stunnel.
If it is there then just use the following in your ~/.vm file changing
username and password:
;;-*- Mode: Emacs-Lisp -*-
;; Directory where folders of mail are kept
(setq vm-folder-directory "~/Mail/")
(setq vm-primary-inbox "~/Mail/inbox")
;; where sent mail is stored
(setq mail-archive-file-name "~/Mail/outbox")
;; gmail settings
(setq vm-stunnel-program "/usr/sbin/stunnel")
(setq vm-spool-files '(;"/var/spool/mail/kalyanm"
"pop-ssl:pop.gmail.com:995:pass:kalyan.infinity:**"))
For sending mail I use msmtp available as deb packages using aptget or
rpm packages.
Create a .msmtprc file in your home directory
modeled on:
account default
host smtp.gmail.com
auth on
user kalyan.infinity@xxxxxxxxxxx
password **
port 587
from kalyan.infinity@xxxxxxxxxxx
tls on
Set permission using
$ chmod 644 .msmtprc
put this in your ~/.emacs
(setq sendmail-program "/usr/bin/msmtp)
You are ready to send mail from VM and gmail.
Cheers.
Kalyan
PS: Lucas thinks the access permission I set allows other users of my
machine to get my password. But there is no other user here, so I am
not bothered. Perhaps you should change this. msmtp will complain if
the permission is 777.
K
-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help"
Emacspeak Files |
Subscribe |
Unsubscribe | Search