If your login name is jdash, your .emacs
file would look like:
;; Configure IMAP
(setq rmail-primary-inbox-list (list "imap://jdash@mail.cs.uoregon.edu"))
(setq rmail-movemail-variant-in-use 'mailutils)
(setq rmail-remote-password-required t)
;; Configure SMTP
(setq send-mail-function 'smtpmail-send-it)
(setq smtpmail-smtp-server "mail.cs.uoregon.edu")
(setq smtpmail-smtp-service 587)
Notes
Emacs uses movemail
to retrieve your mail from your IMAP inbox. The version of movemail
supplied by GNU Emacs does not support IMAP, only POP. The version from the GNU Mailutils does support IMAP. We have GNU Mailutils installed on ix.cs.uoregon.edu.
The SMTP configuration will ask for your password. It will offer to save your password. If say yes, it stores it in plain text in a file .authinfo
. You probably shouldn't save your password. If you do make sure that .authinfo
is only readable by you.
References