exchange
Backlinks davmail
Backlinks davmail
The answer for microsoft exchange in linux. Configuration davmail.server=true davmail.mode=Auto davmail.url=https://mail.domain.com/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-mkn.log davmail.logFileSize=1MB davmail.disableGuiNotifications=true davmail.disableTrayActivitySwitch=true davmail.showStartupBanner=false davmail.enableKerberos=false Systemd user unit most linux distro uses systemd anyway. # /usr/lib/systemd/user/davmail@.service [Unit] Description=DavMail for %i [Service] ExecStart=/usr/bin/davmail %h/.config/davmail/%i.properties Restart=on-failure [Install] WantedBy=default.target DefaultInstance=davmail
Setup See arch wiki for complete setup in archlinux. My setup # Set default values for all following accounts. defaults auth on tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt logfile /tmp/msmtp.log account gmail host smtp.gmail.com port 587 user alexarians@gmail.com from alexarians@gmail.com passwordeval pass google.com/app_pass/alexarians@gmail.com account hotmail host smtp-mail.outlook.com port 587 user christian.alexander@windowslive.com from christian.alexander@windowslive.com passwordeval pass outlook.live.com/christian.alexander@windowslive.com account ymail host smtp.mail.yahoo.com port 587 user christian.alexander@ymail.com from christian.alexander@ymail.com passwordeval pass login.yahoo.com/app_pass/christian.alexander@ymail.com account yahoo host smtp....
Required Setups Packages notmuch msmtp Preferrably, emacs as a frontend. Message (use-package message :custom (message-directory (expand-file-name ".mail" (getenv "HOME"))) (message-sendmail-envelope-from 'header)) Notes: message-directory should reflects the root directory for mail. sendmail (use-package sendmail :custom (mail-specify-envelope-from t) (mail-envelope-from 'header) (send-mail-function 'sendmail-send-it) (sendmail-program (executable-find "msmtp"))) Notes: sendmail-program should point to the full path. Hooks Post-new #!/usr/bin/env bash _AFEW=$(command -v afew) newcount=$(notmuch count tag:new) summary="Notmuch: ${newcount} new message" [ -n "${_AFEW}" ] && "${_AFEW}" --tag --new -vv if [ $newcount -gt 1 ]; then summary="${summary}s"; fi if [ $newcount -gt 0 ]; then detail="$(notmuch search --output=summary --format=json tag:new | sed -e 's/....