Basic Installation to Contemporary Installation Guide
Basic Installation to a Contemporary Installation
Terminology Changes
Since v4.2.0 of Dada Mail, we no longer suggest - or support doing a Basic Installation of Dada Mail.
The, Advanced Installation of Dada Mail is now just known as a, Manual Installation of Dada Mail.
Dada Mail v4.2.0 and above ships with the Dada Mail Installer to help automate the installation and configuration of Dada Mail.
The method that the Dada Mail Installer sets things up will be the same as how our Manual Installation instructions work - it just automates it all.
Introduction
If you initially installed Dada Mail using our Basic Installation instructions, you'll need to change configuration to use the more contemporary configuration. The Basic Installation instructions are not currently supported.
A Basic Installation means simply changing the first four variables in the dada/DADA/Config.pm
file itself. One of these variables is the $FILES
variable, which is set to a directory where all the files/directories Dada Mail creates that represent a Mailing List in Dada Mail are stored.
Contemporary Installations of Dada Mail need only one variable in the Config.pm
file changed. This variable is called. $PROGRAM_CONFIG_FILE_DIR
. All other configuration changes are put in an outside configuration file called, .dada_config
.
The instructions below will try to guide you from changing between and Basic and Contemporary Installation.
It's suggested that you perform this change after upgrading. First, install Dada Mail using the Dada Mail Installer, then move over the files from the old installation into the directory structure of the new installation.
Find the $FILES directory
Before performing a installation for your new Dada Mail, find the directory used for the, $FILES
variable in your old installation. This variable is located in the, dada/DADA/Config.pm
file.
This directory should hold most all the files/directories that represent your Mailing Lists.
Install Dada Mail
You may either use the Dada Mail Installer (preferred):
http://dadamailproject.com/support/documentation-8_4_0/install_dada_mail.pod.html
Or Manually install Dada Mail (more difficult)
http://dadamailproject.com/installation/installation_advanced.html
Once you've done the install/upgrade, your previous mailing lists will not be available, until after you manually move over the previous installation's Dada Mail files.
Move Old Files over to the New Directory Structure
The new installation should leave you with a directory struture within your .dada_files
directory that looks like this:
.archives
.backups
.configs
.lists
.logs
.templates
.tmp
All that's needed now to do is to move your old files in the old directory (saved in the old $FILES
location into this new directory structure:
Any directories named after the list short name are probably backups. Move those into,
.backups
Any files that start with,
mj-
and end in,archives
are archives. Move those files into,.archives
Any other files that start with
mj-
are your list settings. Move those files into,.lists
Any files that end in,
.list
, or.black_list
, or something similar, basically: a dot (.
), (something else) and then,list
are your subscribers. Move those files into,.lists
Any file with the ending of,
.txt
or,.log
are probably logs, Move those files into,.logs
Any file that ends in,
.template
goes in,.templates
Most anything else is probably a temporary file, you may put them into,
.tmp
and when you're sure they're not useful, you may remove them.
You've now moved your Basic Installation of Dada Mail to a Contemporary Installation of Dada Mail.
If you upgraded Dada Mail to use the Default Backend, visiting Dada Mail should show your original mailing lists. If so, you are done.
If you upgraded Dada Mail using the SQL backend (and had previously used the Default Backend> you will need to migrate your old Mailing List Information to the SQL backend. Moving from the Default Backend to one of the SQL backends is covered here:
http://dadamailproject.com/d/FAQ-default_to_SQL_backend.pod.html