The FreeBSD Forums  

Go Back   The FreeBSD Forums > Miscellaneous > Howtos & FAQs

Howtos & FAQs Would you like to share some of your solutions for certain problems? Tips or tricks? Post here.

Reply
 
Thread Tools Display Modes
  #1  
Old August 23rd, 2009, 17:22
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,344
Thanks: 376
Thanked 552 Times in 436 Posts
Default mutt + gmail imap + gnupg

Here's what you need to have in your mutt config if you want to
mutt + gmail imap:
Code:
set realname = "YOUR_NAME SURNAME"
set from = "LOGIN@gmail.com"

set signature = ~/.mutt/sign

set imap_user = "LOGIN"
set folder = "imaps://imap.gmail.com:993"
set postponed = "+[Gmail]/Drafts"
#set spoolfile = "+INBOX"
# I prefer to start with All Mail folder
set spoolfile = "+[Gmail]/All Mail"
set record = "+[Gmail]/Sent Mail"
set imap_check_subscribed = yes
set copy
when you started mutt, you'll start in All Mail folder (I love this), to change folder press c, and type folder name, or hit ?, to get list of folders


+ gnupg:
Code:
# replace 0x7ED573D3 with your private key ID
set pgp_sign_as = 0x7ED573D3

set pgp_decode_command = "gpg %?p?--passphrase-fd 0? --no-verbose \
	--batch --output - %f"
set pgp_verify_command = "gpg --no-verbose --batch --output - \
	--verify %s %f"
set pgp_decrypt_command = "gpg --passphrase-fd 0 --no-verbose \
	--batch --output - %f"
set pgp_sign_command = "gpg --no-verbose --batch --output - \
	--passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command = "gpg --no-verbose --batch --output - \
	--passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command = "/usr/local/bin/pgpewrap gpg --batch \
	--quiet --no-verbose --output - --encrypt --textmode --armor \
	--always-trust --encrypt-to %a -- -r %r -- %f"
set pgp_encrypt_sign_command = "/usr/local/bin/pgpewrap gpg \
	--passphrase-fd 0 --batch --quiet --no-verbose --textmode \
	--output - --encrypt --sign %?a?-u %a? --armor --always-trust \
	--encrypt-to %a -- -r %r -- %f"
set pgp_import_command = "gpg --no-verbose --import -v %f"
set pgp_export_command = "gpg --no-verbose --export --armor %r"
set pgp_verify_key_command = "gpg --no-verbose --batch --fingerprint \
	--check-sigs %r"
set pgp_list_pubring_command = "gpg --no-verbose --batch --with-colons \
	--list-keys %r"
set pgp_list_secring_command = "gpg --no-verbose --batch --with-colons \
	--list-secret-keys %r"
set pgp_timeout = 300
set pgp_good_sign = "^gpg: Good signature from"
set pgp_use_gpg_agent = yes

set pgp_autosign = yes
set pgp_replyencrypt = yes
set pgp_replysign = yes
set pgp_replysignencrypted = yes
set pgp_strict_enc = yes
set pgp_verify_sig = yes
set pgp_auto_decode = yes
I attached my entire mutt config
Extract it in your home dir, then then check all files, and edit as necessary (very little to do)

Have fun!
For more info on mutt configuration read
http://people.gl.ciw.edu/cohen/mutt/manual.html
Attached Files
File Type: gz mutt_config.tar.gz (2.7 KB, 117 views)

Last edited by graudeejs; August 23rd, 2009 at 17:35.
Reply With Quote
  #2  
Old August 23rd, 2009, 19:46
vivek's Avatar
vivek vivek is offline
Member
 
Join Date: Nov 2008
Location: Hyper Space
Posts: 809
Thanks: 3
Thanked 170 Times in 100 Posts
Default

Nice, but I do not trust much with Google. How hard is to run your own mail server these days?
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/
Reply With Quote
  #3  
Old August 23rd, 2009, 19:48
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,344
Thanks: 376
Thanked 552 Times in 436 Posts
Default

Quote:
Originally Posted by vivek View Post
Nice, but I do not trust much with Google. How hard is to run your own mail server these days?
Ye, I don't trust googe as well.
But I can't afford to run my own server, just to get/send mail
Reply With Quote
Reply

Tags
gnupg, imap, kiss, mail, mutt

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mail marked as spam in yahoo & gmail best Web & Network Services 8 August 19th, 2009 11:20
Mutt IMAP head_cache Duckshot Installation and Maintenance of FreeBSD Ports or Packages 0 August 10th, 2009 18:21
[Solved] IMAP inetd.conf file help.. otisranson Web & Network Services 10 August 6th, 2009 15:22
do you use gnupg, pgp graudeejs Off-Topic 7 August 6th, 2009 14:04
[Solved] mutt move msg to folder graudeejs Installation and Maintenance of FreeBSD Ports or Packages 2 March 5th, 2009 21:46


All times are GMT +1. The time now is 22:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.