Posted by
stoyan on 09-Oct-2008
After the rumors about locked GMail accounts, decided to backup my important emails. The article How to back up your Gmail on Linux in four easy steps helped me a lot. My setting in ~/.getmail/getmail.gmail are (IMAP, Maildir):
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = my_name
password = my_secret
mailboxes = (”personal”,”important”)
[destination]
type = Maildir
path = ~/gmail-archive/
[options]
verbose = 2
message_log = ~/.getmail/gmail.log
The backup itself was done via:
$ getmail -r ~/.getmail/getmail.gmail
Posted by
stoyan on 27-Jun-2006
On the previous Kansai Rails Conference in Asiyagawa somebody asked me about using GMail (smtp+ssl or tls) with Rails ActiveMailer. Didn’t find solution until now but ‘dza-dza-dzaaaaaaan’ (hahaha i’m not so smart, all credits going to entombedvirus ):
Send email with ActionMailer through TLS only SMTP server
So for Debian (Ubuntu):
Install msmtp (light SMTP client with support for server profiles)
$ sudo apt-get install msmtp
Create/edit ~/.msmtprc
account gmail
host smtp.gmail.com
auth on
user <your_account>@gmail.com
password <your_password>
tls on
tls_starttls on
from <your_account>@gmail.com
maildomain gmail.com
account default : gmail
Stop msmtp complaining about permissions
$ chmod 600 ~/.msmtprc
Add on the bottom of yourrailsapp/config/environment.rb (and comment another ActionMailer::Base.delivery_method settings if exists)
ActionMailer::Base.delivery_method = :msmtp
module ActionMailer
class Base
def perform_delivery_msmtp(mail)
IO.popen("/usr/bin/msmtp -t -C /<path_to>/.msmtprc -a gmail --", "w") do
|sm|
sm.puts(mail.encoded.gsub(/\r/, ''))
sm.flush
end
end
end
end
Do not forget to fix the exact path to your .msmtprc in the source above.
Posted by
stoyan on 12-May-2006
Gmail for your domain just rocks! After 1 or 2 weeks of waiting you can have the latest on the web 2.0 email market for your own domain (personal or the company one). I already have my Gmail-based family webmail
Still moving the whole stuff from the @gmail accounts is in front…Hope there is some tool for easy transfer between accounts – emails, labels, filters etc.