These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

UNIX03/Configure DCC

Classnotes | UNIX03 | RecentChanges | Preferences

Since amavisd-new will be running in chroot mode, we need to copy DCC and all the files it needs to the chroot directory. The way DCC is called by SpamAssassin requires /bin/sh in order to work properly. You should be aware that this it reduces the security of the system. Without it, you'll receive this error when running amavisd debug: DCC -> check failed: no response

 # mkdir -p /var/lib/amavis/var
 # mkdir -p /var/lib/amavis/usr/bin
 # mkdir -p /var/lib/amavis/usr/libexec
 # mkdir -p /var/lib/amavis/lib
 # mkdir -p /var/lib/amavis/var/dcc
 # mkdir -p /var/lib/amavis/usr/lib /var/lib/amavis/bin
 # cp -r /var/dcc /var/lib/amavis/var/
 # cp /usr/local/bin/dccproc /var/lib/amavis/usr/bin
 # cp /usr/libexec/ /var/lib/amavis/usr/libexec
 # chown -R amavis:amavis /var/lib/amavis/var/dcc 
 # cp /bin/sh /var/lib/amavis/bin/

DCC uses several libraries, which we need to copy to the chroot directory. Since the version numbers on these libraries seem to change regularly, rather than just telling you which files to copy, you can run the following command:

 # for i in `ldd /usr/local/bin/dccproc | sed 's/.*=> //' | sed 's/(.*//'`; do 
 > cp $i /var/lib/amavis$i; 
 > done

You can enable or disable DCC by editing your etc/mail/spamassassin/ file: use_dcc 1

Classnotes | UNIX03 | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited June 7, 2003 2:13 am (diff)
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.