Skip to main content

Email for UNIX/Linux


On Department-Managed Computers

Department managed computers running UNIX/Linux should already be pre-configured to connect to the correct mail server.

On Self-Managed Computers

To configure your own computer to access email, follow the below instructions:

Quick Setup

Mail Server Configuration
Service Direction Server Protocol Security Port
UCSD Gmail INCOMING imap.gmail.com IMAP SSL 993
UCSD Office 365 INCOMING outlook.office365.com IMAP SSL 993
UCSD Exchange INCOMING mail.ucsd.edu IMAP SSL 993
           
ALL OUTGOING smtp.ucsd.edu SMTP SSL 465

Detailed Setup

pine

pine -pinerc $HOME/.pinerc
vi $HOME/.pinerc
  inbox-path={mail.ucsd.edu/ssl/novalidate-cert/user=USERNAME}inbox
  folder-collections=mail.ucsd.edu {mail.ucsd.edu/ssl/novalidate-cert/user=USERNAME}[]
pine

mutt

vi $HOME/.muttrc
  set spoolfile = "imaps://USERNAME@mail.ucsd.edu/INBOX"
  set folder = "imaps://USERNAME@mail.ucsd.edu/"
mutt

elm

The currently installed version of the elm mailer does not support remote IMAP mail server connections. Try using mutt instead.

nail

NOTE: On some systems, the nail mailer is also known as the "Heirloom mailx" mailer.

vi $HOME/.mailrc
  set NAIL_EXTRA_RC=$HOME/.nailrc
vi $HOME/.nailrc
  set folder=imaps://USERNAME@mail.ucsd.edu
  set ssl-verify=ignore
  set record=+Sent MBOX=+INBOX outfolder
nail

mail/mailx/Mail

For Linux systems, the mail/mailx/Mail mailer may actually run the nail mailer. See the instructions for nail instead.

For Solaris UNIX systems, the currently installed version of the mail/mailx/Mail mailer does not support remote IMAP mail server connections. Try using nail, pine, or mutt instead.