Getting Email Working

From Applied Optics Wiki
Jump to: navigation, search

Back to Linux How-tos

See also Exchange Calendar Sync

The "Steve" Method

Recently whilst upgrading to Suse 11 KDE 4.0 I found that Kmail didn't work as usual when I logged in. Doing the normal I checked the wiki and couldn't find anything about this. What I found is that for some reason the Kmail settings did not transfer over to the new Kmail. As such I had to go to another machine with the older Kmail on it and pull them all off, this was annoying so to be helpful I have place the settings here.

Under Settings in Kmail go to Configure

Goto Accounts

In Receiving tab click add

Choose the IMAP setting

Set the following in the 'General' tab:

  • Account name =
  • Login = ad/YOUREMAIL (minus the garb) (NB: Steve thinks this should be a backslash "\")
  • Password = YOURPASSWORD
  • Host =
  • Port = 993

In the Security tab select 'Use SSL for secure mail download'

Click ok

In Sending tab click add

Set the following :

  • Name =
  • Host =
  • Port = 25

Click ok

All being well Kmail should function now. It is worth noting that Kmail no longer automatically puts a icon in your system tray this has to be turned on.

As ever written to be useful, if it's not change it.

The "Matt" method

For this method you need a .fetchmailrc file and a .procmailrc file. Your mail will be fetched from the server, filtered and stored locally. Once per boot you need to run fetchmail.

Matt's .fetchmailrc

poll protocol imap port 993
user "yournovellusername" pass "yournovellpassword" ssl
smtphost localhost
smtpname matt
fetchlimit 500
set daemon 15
set logfile /home/matt/.fetchmail.log

Matt's .procmailrc


#Everyone goes through the spam filter
#Run SpamAssassin daemon mode
#spamc is the daemon for spamassassin
#spam mails will come back marked with a spam header
| spamc

* ^X-Spam-Optics: Y

* ^X-Spam-Status: Y

* ^X-Spam-Flag: Y

:0 :
* ^To:.*EZ-

Now your email will reside on optics rather than the imap server, however, it will be filtered locally by spamassassin so you'll get less spam.

Thunderbird and Office365

Since 2016 the university have rolled out office 365 meaning most of the old walkthroughs no longer work. This is intended to be a guide to adding your university 365 account on the Thunderbird email client.

File-> Add Mail Account

  • Your Name: Your name
  • Email Address:
  • Password: password


  • IMAP
  • Server hostname -
  • Port - 993
  • Authentication - Normal Password


  • SMTP
  • Server hostname -
  • Port - 587
  • Authentication - Normal Password



If these settings have been entered correctly, the Done button will be visible. Click it to set up the account. Office365 account settings, such as incoming and outgoing port can be checked online at your university email account. This is done by navigating to account settings ->Settings for POP or IMAP access.