Difference between revisions of "Getting Email Working"

From Applied Optics Wiki
Jump to: navigation, search
(Getting Kmail Working)
(Office 365 update)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Back to [[Linux How-tos]]
 
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.
 
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.
Line 14: Line 18:
 
Set the following in the 'General' tab:
 
Set the following in the 'General' tab:
 
*Account name =  Exmail.nottingham.ac.uk
 
*Account name =  Exmail.nottingham.ac.uk
*Login = ad/'''YOUREMAIL''' (minus the @nottingham.ac.uk garb)
+
*Login = ad/'''YOUREMAIL''' (minus the @nottingham.ac.uk garb) (NB: Steve thinks this should be a backslash "\")
 
*Password = '''YOURPASSWORD'''
 
*Password = '''YOURPASSWORD'''
*Host = impa4.nottingham.ac.uk
+
*Host = imap4.nottingham.ac.uk
 
*Port = 993
 
*Port = 993
  
Line 34: Line 38:
 
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.
 
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 its not change it.
+
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
 +
<pre>
 +
poll imap4.nottingham.ac.uk protocol imap port 993
 +
user "yournovellusername" pass "yournovellpassword" ssl
 +
smtphost localhost
 +
smtpname matt
 +
fetchlimit 500
 +
set daemon 15
 +
set logfile /home/matt/.fetchmail.log
 +
</pre>
 +
 
 +
Matt's .procmailrc
 +
<pre>
 +
SHELL=/bin/sh
 +
PATH="$HOME/bin:/usr/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin:/usr/sbin"
 +
MBOX=$HOME/Mail
 +
LOCKFILE=$HOME/.procmail.lock
 +
ASSASSINLOCK=$HOME/.spamassassin.lock
 +
JUNKMAIL=$MBOX/spam_filtered
 +
TESTING=$MBOX/testing
 +
BITBUCKET=/dev/null
 +
LOCKTIMEOUT=10
 +
ACADEMIC=$MBOX/academic
 +
UCU=$MBOX/aut
 +
LOGFILE=$HOME/.procmail.log
 +
#LOGABSTRACT=no
 +
#VERBOSE=no
 +
 
 +
#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
 +
:0 fw : $ASSASSINLOCK
 +
| spamc
 +
 
 +
:0:
 +
* ^X-Spam-Optics: Y
 +
$JUNKMAIL
 +
 
 +
:0:
 +
* ^X-Spam-Status: Y
 +
$JUNKMAIL
 +
 
 +
:0:
 +
* ^X-Spam-Flag: Y
 +
$JUNKMAIL
 +
 
 +
:0 :
 +
* ^To:.*EZ-
 +
$ACADEMIC
 +
</pre>
 +
 
 +
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: ''firstname.surname''@nottingham.ac.uk
 +
*Password: ''password''
 +
 
 +
Incoming
 +
*IMAP
 +
*Server hostname - outlook.office365.com
 +
*Port - 993
 +
*SSL - SSL/TLS
 +
*Authentication - Normal Password
 +
 
 +
Outgoing
 +
*SMTP
 +
*Server hostname - smtp.office365.com
 +
*Port - 587
 +
*SSL - SSL/TLS
 +
*Authentication - Normal Password
 +
 
 +
Username
 +
*''firstname.surname''@ad.nottingham.ac.uk
 +
 
 +
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.

Latest revision as of 10:32, 21 October 2016

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 = Exmail.nottingham.ac.uk
  • Login = ad/YOUREMAIL (minus the @nottingham.ac.uk garb) (NB: Steve thinks this should be a backslash "\")
  • Password = YOURPASSWORD
  • Host = imap4.nottingham.ac.uk
  • Port = 993

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

Click ok

In Sending tab click add

Set the following :

  • Name = Email.nottingham.ac.uk
  • Host = smtp.nottingham.ac.uk
  • 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 imap4.nottingham.ac.uk 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

SHELL=/bin/sh
PATH="$HOME/bin:/usr/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin:/usr/sbin"
MBOX=$HOME/Mail
LOCKFILE=$HOME/.procmail.lock
ASSASSINLOCK=$HOME/.spamassassin.lock
JUNKMAIL=$MBOX/spam_filtered
TESTING=$MBOX/testing
BITBUCKET=/dev/null
LOCKTIMEOUT=10
ACADEMIC=$MBOX/academic
UCU=$MBOX/aut
LOGFILE=$HOME/.procmail.log
#LOGABSTRACT=no
#VERBOSE=no

#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
:0 fw : $ASSASSINLOCK
| spamc

:0:
* ^X-Spam-Optics: Y
$JUNKMAIL

:0:
* ^X-Spam-Status: Y
$JUNKMAIL

:0:
* ^X-Spam-Flag: Y
$JUNKMAIL

:0 :
* ^To:.*EZ-
$ACADEMIC

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: firstname.surname@nottingham.ac.uk
  • Password: password

Incoming

  • IMAP
  • Server hostname - outlook.office365.com
  • Port - 993
  • SSL - SSL/TLS
  • Authentication - Normal Password

Outgoing

  • SMTP
  • Server hostname - smtp.office365.com
  • Port - 587
  • SSL - SSL/TLS
  • Authentication - Normal Password

Username

  • firstname.surname@ad.nottingham.ac.uk

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.