10-debian_scripts
20-package
01-debian
05-domain_id
05-node_id
15-av_scanners
15-content_filter_mode
20-debian_defaults
25-amavis_helpers
30-template_localization
50-user
charset
template-dsn.txt
template-spam-admin.txt
template-spam-sender.txt
template-virus-admin.txt
template-virus-recipient.txt
template-virus-sender.txt
read_l10n_templates('en_US', '/etc/amavis');
de_DE.outdated_for_2.3.3-2
it_IT.outdated_for_2.3.3-2
pt_BR.outdated_for_2.3.3-2
If you have already installed the 2.4.2 package from Debian
(actually 2.3.3 or newer), and you don't like
the way it's set up and you want to go back to the old way of doing things
(configuring amavisd-new by modifying /etc/amavis/amavisd.conf), then this is
how I would accomplish the task. Begin by replacing /etc/init.d/amavis with the old version from 20030616-p10:
cd /etc/init.d
The original version of amavisd-new will want to use /etc/amavisd.conf so make a symbolic link (if you don't already have one) that points /etc/amavisd.conf to /etc/amavis/amavisd.conf. If you already have a real file named /etc/amavisd.conf, you can either not perform this step (and use /etc/amavisd.conf as the file you configure) or rename /etc/amavisd.conf to something else before performing this step:
Download and unpack amavisd-new 2.4.5 and copy a few files:
cd /usr/local/src
Stop amavisd-new: amavisd-new stop
Do one of two things. If you had an amavisd.conf file prior to installing the Debian amavisd-new, it will have been renamed amavisd.conf.disabled. You may have already renamed that to something like amavisd.conf-backup. So if you have an old amavisd.conf like that which you wish to continue to use, copy it to amavisd.conf and place it in the /etc/amavis/ directory if it is not already there. If you currently do not have an amavisd.conf, or would like to start off with a fresh new copy, then get a 2.4.5 Debian specific version from me (and also get Debian specific amavisd.conf-sample). By default, wget should not overwrite existing files, so if you already have an amavisd.conf, the one you wget here should be named amavisd.conf.1:
cd /etc/amavis
If you downloaded amavisd.conf from me, you must edit it and at the very least configure $mydomain and $myhostname. Now (optionally) backup and install version 2.4.5 (en_US) template files. Another option is to disable the use of external templates (on a typical Debian machine you would comment out "read_l10n_templates" in amavisd.conf). A third option is to do nothing:
cp -r /etc/amavis/en_US /etc/amavis/en_US-backup
Once you have amavisd.conf configured, we can copy amavisd-new-2.4.5 over the top of amavisd-new and start it up:
cp /usr/sbin/amavisd-new-2.4.5 /usr/sbin/amavisd-new
To prevent future accidental upgrades during 'apt-get upgrade', place the amavisd-new package on hold: echo "amavisd-new hold" | dpkg --set-selections
If in the future, you would like to take amavisd-new off hold: echo "amavisd-new install" | dpkg --set-selections Aaaaahhhhh Darn it! Those guys! Debconf wants to fix things up (revert to the Debian amavisd-new) every time you install a new program! I guess we better remove the Debian amavisd-new. I shouldn't have to say this, but don't even think about purging amavisd-new. Oops, now you thought about it, but don't do it. Have a backup copy of amavisd.conf in case of some unforeseen problem (and place it somewhere other than /etc/amavis/), then run this to make sure amavisd-new is the only thing that will be removed: apt-get -s remove amavisd-new
If it is not the only thing that will be removed, then make a note of any other programs that will get removed (because you will have to reinstall them) and proceed with extreme caution - at your own risk. Hopefully, only amavisd-new will be removed. If that is true, then you can remove it:
mkdir /etc/ambackup Now amavisd-new will be broken (the guts are missing), but it's easy to fix:
cp /usr/sbin/amavisd-new-2.4.5 /usr/sbin/amavisd-new
Check that you still have an /etc/amavis/amavisd.conf (if you are doing this
after the fact it will have been renamed amavisd.conf.disabled again) and then
you can start up amavisd-new:/etc/init.d/amavis start
|
mkdir /etc/amavis/stage
cd /etc/amavis/stage
wget http://verchick.com/mecham/public_html/debian/2.4.2/01-debian
wget http://verchick.com/mecham/public_html/debian/2.4.2/05-domain_id
wget http://verchick.com/mecham/public_html/debian/2.4.2/05-node_id
wget http://verchick.com/mecham/public_html/debian/2.4.2/15-av_scanners
wget http://verchick.com/mecham/public_html/debian/2.4.2/15-content_filter_mode
wget http://verchick.com/mecham/public_html/debian/2.4.2/20-debian_defaults
wget http://verchick.com/mecham/public_html/debian/2.4.2/25-amavis_helpers
wget http://verchick.com/mecham/public_html/debian/2.4.2/30-template_localization
wget http://verchick.com/mecham/public_html/debian/2.4.2/50-user
apt-get -t sarge-backports install libcompress-zlib-perl
apt-get install libmime-perl/testing
amavisd-new stop
apt-get install amavisd-new/testing