Users/MailMigration

Skynet will migrate to a new, mail only server on the 8th August, 2007. The current mailserver, calculon, also handles main user auth and /home. The new mailserver, gir will handle only e-mail.

Table of Contents


What changes will it bring?

To a user who only uses their Inbox, there will be no changes. Mail will still be delivered and still accessible by pine and mutt on Skynet as well as externally by IMAP and POP3. mail.skynet.ie will point to gir.

If you want folders outside Inbox migrated to the new server, you need to e-mail mailmigration /at/ skynet /dot/ ie.

Throughout this document, configuration depends on your username. When we mean you to substitute in your own username, we will type $your_username. So if your username is joebloggs, you would substitute in joebloggs everywhere it says $your_username.

Change in setup

Currently, e-mail is delivered to calculon. If you have extra folders such as sent, trash or any other folders you save mail in, they will be stored in your home directory. Depending on the e-mail client you use (pine, mutt, Thunderbird, webmail etc.) the actual folders may be in the root of your home directory (/home/$your_username) or in the mail subdirectory of your home (/home/$your_username/mail).

procmail

[WWW] Procmail is installed on Skynet and allows users to sort incoming mail automatically. It will still be available on gir. Changes need to be made to have procmail work correctly on gir. Currently, procmail is controlled by a file in your home directory called .procmailrc (the dot at the start is important). To work correctly on gir, the file must be made available on gir. To make it available on gir, the file must be copied to /mailconfig/$your_username on skynet (the main login machine). Changes that have to be made to the .procmailrc itself are detailed below. If you want your .procmailrc to be migrated by the admin team, please mail mailmigration /at/ skynet /dot/ ie.

SpamAssassin

[WWW] SpamAssassin is installed on Skynet to allow users to spam-check their e-mail. It will still be available on gir. Few changes need to be made. No special modifications are needed to the .procmailrc to make sure it works on gir, apart from the folder location change detailed below so that spam gets delivered to the correct folder. The only other change that is needed is for users that have a custom SpamAssassin configuration or have a Bayesian filter database they want to keep. All you need to do is copy the .spamassassin/ folder in your home directory to /mailconfig/$your_username on skynet (the main login machine).

Webmail

Webmail will continue to be available. The location [WWW] https://www.skynet.ie/mail will be changed to [WWW] https://webmail.skynet.ie/ but an automatic forward will be in place. [WWW] SquirrelMail users will have their configuration automatically migrated to the new server. As well as SquirrelMail for webmail, [WWW] IlohaMail will also be available.

Virus Checking

Automatic virus checking of e-mail will be added. If a message is found to have a virus, a header "X-Amavis-Alert: INFECTED" will be added to the message. A procmail rule to automatically delete e-mails with this header is included below.

Show all Email folders with Pine

The default setting at the moment for pine is to display both new mail folders (IMAP) and old mail folders (in ~/mail). If you prefer to see only one of these, edit your .pinerc and add/amend the "folder-collections" line.

For new (IMAP) folders only

vi ~/.pinerc
#look for "folder-collections=" (in command mode in vi, go "/folder-collections" to search for it), replace with:
folder-collections={mail.skynet.ie/novalidate-cert}[]

For old (~/mail) folders only

vi ~/.pinerc
#look for "folder-collections=" (in command mode in vi, go "/folder-collections" to search for it), replace with:
folder-collections=mail/[]

Migration of e-mail folders

If you want folders outside Inbox migrated to the new server, you need to e-mail mailmigration /at/ skynet /dot/ ie.

If you want to do it yourself, the old mailserver will continue to be available at oldmail.skynet.ie as an IMAP and POP3 server. A number of methods can be used to migrate e-mail. 2 are detailed here

PLEASE DO NOT ATTEMPT THE FOLLOWING STEPS UNTIL AFTER THE 8TH AUGUST

Use an IMAP e-mail client

You can use an IMAP e-mail client such as [WWW] Thunderbird. You will need to setup 2 IMAP accounts, one for mail.skynet.ie and another for oldmail.skynet.ie.

If you use pine on skynet normally, your folders apart from Inbox may not show up. If not, click Edit -> Account Settings (On Windows, this may be "Tools -> Account Settings"). Click on the account for the old mailserver (oldmail.skynet.ie) and then "Server Settings". Click on the advanced button. Type in "mail/" as the IMAP server directory and then click OK and then click OK again.

Once you enter your passwords, all your e-mail folders should be visible. If not, right click on the Inbox of the account and then click "Subscribe". Click the "Refresh" button. Place a tick opposite the folders you want to show up.

Now you should be able to select the messages you want to copy and drag-and-drop them to the relevant folder on the new mailserver. The new mailserver supports subfolders - before you could only have (for example) a "Work" folder, now you can have a "Work" folder and then within that, many other folders such as "Todo", "Projects" and "Done".

Use imapsync

[WWW] imapsync is a command line utility that allows you to copy from one IMAP server to another. All the details are at [WWW] http://www.linux-france.org/prj/imapsync/imapsync. In this case, the 2 IMAP servers needed are oldmail.skynet.ie and mail.skynet.ie. If you usually pine on skynet, you may need to put a "mail/" in front of the folder names on the old mail server.

procmail example

In these examples, $LOGNAME means you should type/copy exactly that and not substitute it for anything else. The $your_username substitution still applies

old config

(Saved as ~/.procmailrc on the skynet login server.)

PATH=/bin:/usr/bin
MAILDIR=$HOME/mail      #youd better make sure it exists
LOGFILE=$MAILDIR/mail_log   #recommended

# <cert list>
:0:
* ^TO.*@cert.org
Security
# </cert list>

#SPAM
# Send everything else to spamassassin - I'd be lost without it
:0fw
| /usr/local/bin/spamc

# <sucalendar>
:0:
*^List-Id.*sucalendar.lists.skynet.ie
SU\ Calendar
# </sucalendar>

#<Alladmins>
:0:
* List-Id.*alladmins.lists.skynet.ie
AllAdmins
#</Alladmins>

new config

(Saved as /mailconfig/$your_username/.procmailrc on the skynet login server.)

It is possible on the new mailserver to have all your folders as subfolders of your Inbox. If you do this, you need to add .INBOX to the start of all the folder paths (e.g. .INBOX.Security/). If you want to use pine with this, you need to edit the folder-collections line. Edit as detailed above

For new (IMAP) folders only

folder-collections={mail.skynet.ie/novalidate-cert}INBOX.[]

For both sets

folder-collections={mail.skynet.ie/novalidate-cert}INBOX.[],mail/[]

The . at the start of the line and the / at the end of the folder paths is important.

PATH=/bin:/usr/bin/
MAILDIR=/var/mail/$LOGNAME/      #youd better make sure it exists/
LOGFILE=/home/$LOGNAME/mail_log   #recommended/

# Cron is the only legitimate stuff that should be coming from davisc@csn.ul.ie
:0:
* Cron-Env\ <davisc>         # TODO: Remember to substitute your own username here!
$MAILDIR

# <cert list>
:0:
* ^TO.*@cert.org
.Security/
# </cert list>

#SPAM
# Send everything else to spamassassin - I'd be lost without it
:0fw
| /usr/bin/spamc

#Spamassassin adds an asterisk for each spam point
#if you add "add_header all Level _STARS(*)_"
#to your /mailconfig/$your_username/.spamassassin/user_prefs
#This rule deletes anything that scores more than 12 points
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*.*
/dev/null

# Send other mail marked as SPAM to my SPAM folder to be checked
:0:
* ^X-Spam-Status: Yes
.SPAM/

# This rule deletes all viruses
:0
* ^X-Amavis-Alert: INFECTED
/dev/null

# <sucalendar>
:0:
* ^List-Id.*sucalendar.lists.skynet.ie
.Archive.SU\ Calendar/
# </sucalendar>

# Most mailing list software adds a "List-Id" header which makes
# it easy to filter.
#<Alladmins>
:0:
* List-Id.*alladmins.lists.skynet.ie
.AllAdmins/
#</Alladmins>

last edited 2007-08-09 11:41:45 by 87