If you want to save space, remove apache2, postfix, dovecot, mysql-server, mysql-client, php5, and related packages.
The install the following packages:
On the old server, tar up /etc/exim4, /etc/samba/.
Dump the Spamassassin bayesian database:
sudo sa-learn –backup > /etc/spamassassin/sa.backup
tar up /etc/spamassassin too. You probably have some local rules in there.
Untar your archives onto the new machine. Train Spamassassin:
sudo sa-learn –restore /etc/spamassassin/sa.backup
Edit the /etc/samba/smb.conf file to get rid of any extraneous shares.
Edit /etc/exim4/update-exim4.conf.conf and change the IP addresses. (Also, edit /etc/network/interfaces to what you want, with static addresses.)
Recreate the /home/Spamassassin directory, or tar up the original and untar it into the new machine.
Using tbird, make an .eml file and save it to the server.
clamscan /tmp clamdscan /tmp
Go to http://www.eicar.org/86-0-Intend… and make an EICAR file. Test.
Email the EICAR from the server to yourself, and see it’s detection in the logs.