Using Emacs as an email client

Figure 1: Notmuch Emacs Davmail In my work routines, Microsoft is somewhat unavoidable, and trying to have an email client that can sync Exchange in linux has always been a pain to me. This is my documentation on how to use notmuch, davmail, and msmtp to sync my work emails. Configuration davmail.server=true davmail.mode=Auto davmail.url=https://mail.domain/EWS/Exchange.asmx davmail.defaultDomain=DOMAIN davmail.ssl.nosecurecaldav=false davmail.ssl.nosecureimap=false davmail.ssl.nosecureldap=false davmail.ssl.nosecurepop=false davmail.ssl.nosecuresmtp=false davmail.caldavPort=1081 davmail.imapPort=1144 davmail.ldapPort=1390 davmail.popPort=1111 davmail.smtpPort=1026 davmail.imapAutoExpunge=true davmail.allowRemote=false davmail.logFilePath=/tmp/davmail-domain.log davmail.logFileSize=1MB davmail.disableGuiNotifications=true davmail.disableTrayActivitySwitch=true davmail.showStartupBanner=false davmail.enableKerberos=false Notes davmail.mode set to auto. uses port > 1024 to avoid using root privileges. Also set the davmail.logFilePath to a path that is accessible. davmail.server set to true since I don’t need the GUI. All the ssl options is not necessary since it will only be accessed locally. msmtp It’s a simple smtp client with fairly complete sendmail compatibility. This is not a full tutorial on how to setup msmtp, there’s already much information for that online1. ...

February 22, 2024 · (updated April 23, 2025) · 4 min · 718 words · Kristian Alexander P