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?
Managed AntiSpam
Fully managed filtering of your incoming email.
[ Send Message | View Steve's Scratchpad | 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 | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | 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 | Reply to this comment ]
I check out this page what U send me.
thx
bye
HyGy
[ Parent | Reply to this comment ]
/* 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 | Reply to this comment ]
Or you installed from source?
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]