Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Question: Integrate postfix with amavis+clamav and dspam?:


Re: Integrate postfix + amavis + clamav
Posted by Anonymous (200.222.xx.xx) on Fri 18 Mar 2005 at 01:08
Hi, try this: postfix + amavis + clamav

/* Postfix pre-instalated */
Alter in postfix:

main.cf
content_filter=vscan:
soft_bounce=yes

master.cf
vscan unix - n n - 10 pipe user=amavis argv=/usr/sbin/amavis ${sender}
${recipient}
localhost:10025 inet n - n - - smtpd -o content_filter=

----
Amavis Instalation
Amavis Pre-instalation`s:
o perl (obviously)
o virus scanner software (obviously) < after CLAMAV instalation
o arc
o bunzip2 (part of the bzip2 package)
o lha (version 1.14g or later!)
o unarj
o uncompress (standard on Unix and Unix-like systems)
o unrar
o zoo
search here:
http://rpmfind.net
http://rpmseek.com

Perl instalation ( http://www.cpan.org )
IO-stringy
Unix-Syslog
MailTools
MIME-Base64
MIME-tools version 5.313 or better (!!)
Convert-UUlib version 0.111 or 0.201 or newer (0.2 is broken!)
Convert-TNEF 0.06 or better (!!)
Compress-Zlib 1.14 or better
Archive-Tar
Archive-Zip 1.0 or better
libnet

How do u install Perl?
if rpm... rpm -ivh .
if tar...
Ex.:
tar -xvzf IO-stringy-2.109.tar.gz
cd IO-Stringy-2.109
perl Makefile.PL
make
make test
(OK?)
make install

-----
Amavis instalation( amavis-0.3.12.tar.gz )
Download em http://www.amavis.org

useradd amavis
mkdir /var/virusmails
chown amavis:amavis /var/virusmails
mkdir /var/amavis
chown amavis:amavis /var/amavis
chmod 775 /var/amavis

tar -xvzf amavis-0.3.12.tar.gz
cd amavis-0.3.12
./configure --enable-postfix --with-amavis-user=amavis
make
make check
make install

----
Clamav Anti-Virus instalation ( clamav-0.65-4.i386.rpm )
Download em http://www.clamav.net/

rpm -ivh clamav-0.65-4.i386.rpm

vi /etc/clamav.conf

LogFile /var/log/clamav/clamd.log
LogFileMaxSize 0
LogTime
LogSyslog
LogVerbose
PidFile /var/run/clamav/clamd.pid
DataDirectory /var/lib/clamav
TCPSocket 3310
TCPAddr 127.0.0.1
StreamSaveToDisk
MaxThreads 10
MaxDirectoryRecursion 15
User amavis
AllowSupplementaryGroups
Debug
ScanMail
ScanArchive
ArchiveMaxFileSize 10M
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000

----
daemons start...
clamd
amavis &
service postfix start


Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search