This site is now 100% read-only, and retired.

Question: Integrate postfix with amavis+clamav and dspam?

Posted by hygy on Wed 9 Mar 2005 at 07:52

Does anybody have experience on integrating dspam with a running postfix with virtual users contained in a Mysql database?

Using amavis+clamav installation as a content filter?

 

 


Re: Integrate postfix (virt. mysql users) with ama
Posted by Steve (82.41.xx.xx) on Wed 9 Mar 2005 at 14:44
[ View Weblogs ]

Do you already have the postfix+clamav+mysql setup working and just want to add the dspam setup into it? Or are you starting from scratch?

Steve
-- Steve.org.uk

[ Parent ]

Re: Integrate postfix (virt. mysql users) with ama
Posted by suspended user hygy (213.178.xx.xx) on Wed 9 Mar 2005 at 15:01
Yes, the postfix+amavis+clamav+mysql config is working. Only dspam is left.

[ Parent ]

Integrating dspam with a working postfix setup
Posted by Steve (82.41.xx.xx) on Wed 9 Mar 2005 at 15:09
[ View Weblogs ]

In that case it sounds like this is all you need.

It covers two methods to use dpsam - either using procmail as an agent for local delivery, or using a new transport for virtual setups.

If you're using a virtual setup already the second solution might be best for you.

Searching google found this as well.

Steve
-- Steve.org.uk

[ Parent ]

Re: Integrating dspam with a working postfix setup
Posted by suspended user hygy (213.178.xx.xx) on Thu 10 Mar 2005 at 07:22
First I try to integrate it as a content filter, I think it is the best method for me. The dspam is working like that but when I try to forward a mail to spam@domain then I got an error message (-5).
I check out this page what U send me.

thx
bye
HyGy

[ Parent ]

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

[ Parent ]

Re: Question: Integrate postfix with amavis+clamav
Posted by Anonymous (207.107.xx.xx) on Wed 9 Mar 2005 at 15:47
Is there any dspam package available?

Or you installed from source?

[ Parent ]

Re: Question: Integrate postfix with amavis+clamav
Posted by suspended user hygy (213.178.xx.xx) on Thu 10 Mar 2005 at 07:19
I installed it from source. Somewhere I found debian packages but as I remember thay are old.

[ Parent ]