OpenCart Templates
Home / Videos / Mutt Email Client with IMAP and SMTP through Exchange Web Service…

Mutt Email Client with IMAP and SMTP through Exchange Web Service…

How to Setting up Mutt Email Client with IMAP and SMTP for Receive and Send Email through Exchange Web Services EWS using DavMail

Setting up the DavMail server

Download DavMail

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

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

DavMail Settings
* Right Click on “DavMail” icon, select “Settings”.
* Then select “EWS” from ‘Exchange Protocol’ dropdown.
* Then type “” in ‘OWA (Exchange) URL’ text field.
* The rest of the settings can be left at defaults.
* Click on “save” button

DavMail Tutorial :

Kill DavMail (Optional)
ps -aux | grep davmail
#Kill all davmail instances
sudo killall -9 java

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.

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

Add following lines in ~/.msmtprc

logfile ~/.msmtp.log

account default
host localhost
port 1025
protocol smtp
#auth on
user INsaju.madhavan
password mypassword

#auto_from off
#tls off

#tls on
#tls_starttls on
#tls_certcheck off
auth login

Setting up mutt for email

Add following lines in ~/.muttrc
set spoolfile=”imap://saju.madhavan:mypassword@”
set folder=”imap://saju.madhavan:mypassword@″
set from=””
set realname=’Saju Madhavan’
set trash=”imap://saju.madhavan:mypassword@”
set imap_user=””
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: “”

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


About admin

Check Also


Software Send unlimited email + Serial 1years Email Marketing sof…

Download this software bulk email with serial number. Link : Get SMTP server: ...

Leave a Reply

Your email address will not be published. Required fields are marked *