[FUG-BR] Postifix+Amavis-new+Clamav

andre silva andre_bjl em hotmail.com
Qua Mar 8 02:15:19 BRT 2006


Alguem pode ajudar na configuracao?? Abaixo segue as cfgs q estou fazendo 
nos arquivos AMAVISD.CONF, CLAMD.CONF, MASTER.CF E MAIN.CF

Qndo excuto "amavisd debug" aparece:
servidor# amavisd debug
Mar  8 01:47:35 servidor.teste.com.br /usr/local/sbin/amavisd[3619]: 
starting.  /usr/local/sbin/amavisd at servidor.teste.com.br 
amavisd-new-2.3.3 (20050822), Unicode aware
Mar  8 01:47:35 servidor.teste.com.br /usr/local/sbin/amavisd[3619]: user=, 
EUID: 0 (0);  group=, EGID: 0 5 0 0 (0 5 0 0)
Mar  8 01:47:35 servidor.teste.com.br /usr/local/sbin/amavisd[3619]: Perl 
version  5.008007
Mar  8 01:47:36 servidor.teste.com.br /usr/local/sbin/amavisd[3619]: INFO: 
no optional modules: Mail::SpamAssassin::SQLBasedAddrList DBD::mysql 
Sys::Hostname::Long Mail::SPF::Query Razor2::Client::Agent Net::CIDR::Lite 
Mail::SpamAssassin::Plugin::DomainKeys Mail::DomainKeys::Header 
Mail::DomainKeys::Message Mail::DomainKeys::Policy 
Mail::DomainKeys::Signature Mail::DomainKeys::Key 
Mail::DomainKeys::Key::Public Crypt::OpenSSL::RSA 
auto::Crypt::OpenSSL::RSA::_new auto::Crypt::OpenSSL::RSA::DESTROY 
auto::Crypt::OpenSSL::RSA::load_public_key 
auto::Crypt::OpenSSL::RSA::new_public_key IP::Country::Fast
Insecure dependency in `` while running with -T switch at 
/usr/local/lib/perl5/site_perl/5.8.7/Net/Server/Daemonize.pm line 67.
Mar  8 01:47:36 servidor.teste.com.br /usr/local/sbin/amavisd[3619]: 
Net::Server: 2006/03/08-01:47:36 Insecure dependency in `` while running 
with -T switch at 
/usr/local/lib/perl5/site_perl/5.8.7/Net/Server/Daemonize.pm line 67.\n\n  
at line 251 in file /usr/local/lib/perl5/site_perl/5.8.7/Net/Server.pm
Mar  8 01:47:36 servidor.reconet.com.br /usr/local/sbin/amavisd[3619]: 
Net::Server: 2006/03/08-01:47:36 Server closing!

QUANDO TENTO INICIAR O AMAVISD APARECE:
servidor# amavisd start
Insecure dependency in `` while running with -T switch at 
/usr/local/lib/perl5/site_perl/5.8.7/Net/Server/Daemonize.pm line 67.

A cfg q usei pro amavisd.conf foi:
$mydomain = 'teste.com.br';
$myhostname = 'servidor.teste.com.br';

  qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|
         inf|ins|isp|js|jse|lnk|mda|mdb|mde|mdw|mdt|mdz|msc|msi|msp|mst|
         ops|pcd|pif|prg|reg|scr|sct|shb|shs|vb|vbe|vbs|
         wmf|wsc|wsf|wsh)$'ix,

['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

No arquivo CLAMD.CONF
LogFile /var/log/clamav/clamd.log
LogFileMaxSize 0
LogTime
PidFile /var/amavis/clamd.pid
LocalSocket /var/amavis/clamd.sock
User vscan
DatabaseDirectory /var/db/clamav
FixStaleSocket
TCPAddr 127.0.0.1
MaxThreads 20
MaxDirectoryRecursion 50
ScanMai
ScanArchive
ScanRAR
ArchiveMaxFileSize 50M
ArchiveMaxRecursion 10
ArchiveMaxFiles 1500

No MASTER.CF coloquei as seguintes linhas:
smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_timeout=1200s
-o smtp_never_send_ehlo=yes
-o disable_dns_lookups=yes

127.0.0.1:10025 inet n - n - - smtpd
   -o content_filter=
   -o local_recipient_maps=
   -o smtpd_helo_restrictions=
   -o smtpd_client_restrictions=
   -o smtpd_sender_restrictions=
   -o smtpd_recipient_restrictions=permit_mynetworks,reject
   -o mynetworks=127.0.0.0/8

No arquivo main.cf
myhostname = servidor.teste.com.br
mydomain = teste.com.br
myorigin = $myhostname
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
mynetworks_style = class
mynetworks = XXX.XXX.XXX.0/26, 127.0.0.0/8
relay_domains = $mydestination
alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
mail_spool_directory = /var/mail
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
html_directory = no
manpage_directory = /usr/local/man
readme_directory = no
content_filter = smtp-amavis:[127.0.0.1]:10024

Desde de ja agradeco pela atencao


_______________________________________________
freebsd mailing list
freebsd em fug.com.br
http://lists.fug.com.br/listinfo.cgi/freebsd-fug.com.br



Mais detalhes sobre a lista de discussão freebsd