User Tools

Site Tools


notes:email-configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:email-configuration [2026/05/31 15:10] – [mbsync] samnotes:email-configuration [2026/09/09 15:57] (current) – Add description of davmail Launch Agent sam
Line 70: Line 70:
 <code> <code>
 $ stty -icanon && davmail ~/.davmail.properties $ stty -icanon && davmail ~/.davmail.properties
 +</code>
 +
 +Starting ''davmail'' automatically on login requires a systemd service on linux, or a Launch Agent on MacOS. For example, I added the following to ''~/Library/LaunchAgents'':
 +<code>
 +<plist version="1.0">
 +  <dict>
 +    <key>Label</key>
 +    <string>davmail</string>
 +    <key>ProgramArguments</key>
 +    <array>
 +      <string>/opt/homebrew/bin/davmail</string>
 +      <string>/Users/sam/.davmail.properties</string>
 +    </array>
 +    <key>RunAtLoad</key>
 +    <true/>
 +    <key>KeepAlive</key>
 +    <true/>
 +    <key>StandardOutPath</key>
 +    <string>/tmp/davmail.stdout.log</string>
 +    <key>StandardErrorPath</key>
 +    <string>/tmp/davmail.stderr.log</string>
 +  </dict>
 +</plist>
 </code> </code>
  
Line 92: Line 115:
 Account <account name> Account <account name>
  
-MaildirStore uchicago-local+MaildirStore <account name>-local
 Path ~/Mail/<account name>-mail/ Path ~/Mail/<account name>-mail/
 Inbox ~/Mail/<account name>-mail/INBOX Inbox ~/Mail/<account name>-mail/INBOX
 SubFolders Verbatim SubFolders Verbatim
  
-Channel uchicago+Channel <account name>
 Far :<account name>-remote: Far :<account name>-remote:
 Near :<account name>-local: Near :<account name>-local:
Line 141: Line 164:
  
 Running ''mbsync <account name>'' will sync the local mail directory specified as above with the server. Running ''mbsync <account name>'' will sync the local mail directory specified as above with the server.
 +Passing ''-a'' will cause //all// accounts to be synchronized.
 +
 +==== msmtp ====
 +
 +''msmtp'' is used to send mail. It's configuration (''~/.msmtprc'') is as follows:
 +<code>
 +defaults
 +logfile ~/Mail/msmtp.log
 +tls_trust_file system # Use the system's tls certificate
 +
 +### University Email
 +
 +account <account name>
 +host 127.0.0.1
 +port 6003
 +protocol smtp
 +auth plain
 +tls off
 +user <my email>
 +from <my email>
 +passwordeval "security find-generic-password -a <my email> -s <my account name> -w"
 +
 +### Gmail
 +
 +account gmail
 +auth on
 +host smtp.gmail.com
 +port 465
 +protocol smtp
 +from <my gmail>@gmail.com
 +user <my gmail>@gmail.com
 +passwordeval "security find-generic-password -a <my gmail>@gmail.com -s <my gmail> -w"
 +tls on
 +tls_starttls off
 +
 +# Default
 +account default : <account name>
 +</code>
notes/email-configuration.1780240218.txt.gz · Last modified: by sam