Custom Search
Showing posts with label Mutt Email Client. Show all posts
Showing posts with label Mutt Email Client. Show all posts

Friday, June 6, 2014

Wednesday, May 28, 2014

How to Setting up Mutt and IMAP for email through Exchange Web Services EWS using DavMail

1)
Setting up the DavMail server
==============================


a)
Download DavMail

http://davmail.sourceforge.net/download.html
http://sourceforge.net/projects/davmail/files/latest/download?source=files

b)
Install DavMail

sudo apt-get install libswt-gtk-3-java
sudo dpkg -i davmail_4.4.1-2225-1_all.deb




c)
Launch DavMail

* You can then launch DavMail via the Applications/Internet menu.
* Or type "davmail" in terminal and press enter

d)
DavMail Settings

* Right Click on "DavMail" icon, select "Settings".
* Then select "EWS" from 'Exchange Protocol' dropdown.
* Then type "https://webmail.your.company.com/EWS/Exchange.asmx" in 'OWA (Exchange) URL' text field.
* The rest of the settings can be left at defaults.
* Click on "save" button

DavMail Tutorial : http://davmail.sourceforge.net/gettingstarted.html

e)
Kill DavMail (Optional)

ps -aux | grep davmail
#Kill all davmail instances
sudo killall -9 java

2)
Setting up msmtp SMTP client
==============================


* Sendmail is the standard for SMTP, but that is not simpler if you’re just setting up a single user local email environment. msmtp is simpler to configure and adequate for single user email needs.

a)
Install msmtp

sudo apt-get install msmtp
touch ~/.msmtprc ~/.msmtp.log
chmod 600 ~/.msmtprc ~/.msmtp.log


b)
Add following lines in ~/.msmtprc
----------------------------------


defaults
logfile ~/.msmtp.log

account default
host localhost
port 1025
protocol smtp
from saju.madhavan@myorg.com
#auth on
user IN\saju.madhavan
password mypassword

#auto_from off
#tls off

#tls on
#tls_starttls on
#tls_certcheck off
auth login


3)
Setting up mutt for email
==============================


a)
Add following lines in ~/.muttrc
----------------------------------

set spoolfile="imap://saju.madhavan:mypassword@127.0.0.1:1143/Inbox"
set folder="imap://saju.madhavan:mypassword@127.0.0.1:1143"
set from="saju.madhavan@myorg.com"
set realname='Saju Madhavan'
set trash="imap://saju.madhavan:mypassword@127.0.0.1:1143/Trash"
set imap_user="saju.madhavan@myorg.com"
set imap_pass="mypassword"
set imap_keepalive=900   # Set lower if connection times out
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies

##SMTP,For Sent mail
set sendmail="/usr/bin/msmtp"
#set envelope_from=yes
my_hdr From: "saju.madhavan@myorg.com"

##Sort by newest conversation first.
set sort = reverse-threads
set sort_aux = last-date-received
















mutt Error sending message, child exited 127 (Exec error.)

Fix
====
1)
Goto ~/.muttrc and check SMTP settings
set sendmail="/usr/bin/msmtp"

2)
If you are using "msmtp", check settings in the ~/.msmtprc

Tuesday, May 27, 2014

How to Configure MUTT Email Client With Gmail

* .muttrc is the file where you will usually place your commands to configure Mutt.

a)
#sudo apt-get install mutt



b)
Create .muttrc file
#vim ~/.muttrc
----------------------------
set from = "sajuptpm@gmail.com"
set realname = "Saju"
set imap_user = "sajuptpm@gmail.com"
set imap_pass = "xxxxxx"

##REMOTE GMAIL FOLDERS
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed ="+[Google Mail]/Drafts"
set trash = "+[Google Mail]/Trash"

##SMTP Settings to sent email
set smtp_url = "smtp://sajuptpm@smtp.gmail.com:587/"
set smtp_pass = "xxxxxx"

##LOCAL FOLDERS FOR CACHED HEADERS AND CERTIFICATES
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates

##SECURING
set move = no  #Stop asking to "move read messages to mbox"!
set imap_keepalive = 900

##Sort by newest conversation first.
set sort = reverse-threads
set sort_aux = last-date-received

##Set editor to create new email
set editor='vim'

c)
Consolify your Gmail with MUTT

http://www.bartbania.com/index.php/consolify-your-gmail-with-mutt/

https://gist.github.com/kaleb/1289741

http://jlime.com/wiki/documentation/user/general/howtos/gmail_mutt

http://dgiakoumakis.wordpress.com/2010/04/02/how-to-configure-mutt-with-you-google-apps-account-using-imap/

http://dev.mutt.org/trac/wiki/MuttGuide/UseIMAP






d)
Mailing lists

http://www.mutt.org/doc/manual/manual.html#toc3.9

e)
Handling Mailing Lists

http://www.mutt.org/doc/manual/manual.html#toc4.8

f)
.muttrc

http://www.davep.org/mutt/muttrc/
http://phdru.name/Software/dotfiles/muttrc.html

g)
https://wiki.archlinux.org/index.php/mutt
https://wiki.debian.org/Mutt

h)
http://lugatgt.org/content/mutt/downloads/presentation.pdf

mutt Fetching message headers fatal error: out of memory

mutt Fetching message headers fatal error: out of memory

Fix
====

1)
Remove Cache
--------------

#cd ~
#rm -rf .mutt/cache/*

OR

rm -rf ~/.mutt/cache/*


2)
Run mutt
----------

#mutt