Skip to content

Instantly share code, notes, and snippets.

@russell
Created September 17, 2013 00:16
Show Gist options
  • Save russell/6588466 to your computer and use it in GitHub Desktop.
Save russell/6588466 to your computer and use it in GitHub Desktop.
ISync & Dovecot Configuration
IMAPAccount gmail-account
Host imap.gmail.com
User user@gmail.com
UseIMAPS yes
CertificateFile /etc/ssl/certs/ca-certificates.crt
Pass "secret"
IMAPStore gmail-store
Account gmail-account
IMAPAccount local-account
Host localhost
User username
Tunnel /usr/lib/dovecot/imap
IMAPStore local-store
Account local-account
Channel inbox-channel
Master :gmail-store:
Slave :local-store:
Patterns "*" !"[Google Mail]/*"
Create Both
Expunge Both
Channel spam-channel
Master :gmail-store:
Slave :local-store:
Patterns "[Google Mail]/Spam"
Create Both
Channel trash-channel
Master :gmail-store:
Slave :local-store:
Patterns "[Google Mail]/Bin"
Create Both
Channel sent-channel
Master :gmail-store:
Slave :local-store:
Patterns "[Google Mail]/Sent Mail"
Create Both
# modifications to /etc/dovecot/conf.d/10-mail.conf
mail_location = mdbox:~/Mail/mdbox
namespace inbox {
# There can be only one INBOX, and this setting defines which namespace
# has it.
inbox = yes
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment