Hi,
I installed amavis+clamav in another host. I set my postfix on another machine following [1] and is as follows: master.cf smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes # -o disable_dns_lookups=yes -o smtp_tls_note_starttls_offer=no 192.168.2.190:10025 inet n - n - - smtpd -o content_filter= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions=reject_unauth_pipelining -o smtpd_end_of_data_restrictions= -o smtpd_restriction_classes= -o mynetworks=127.0.0.0/8,192.168.1.86,10.30.50.25 -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters -o local_header_rewrite_clients= -o smtpd_milters= # -o strict_rfc821_envelopes=yes -o local_recipient_maps= -o relay_recipient_maps= main.cf content_filter=smtp-amavis:[192.168.1.86]:10024 and get the following in the logs: Log of the postfix: Aug 18 08:59:29 smt3net postfix/smtp[3052]: F3B4170D: to=<[EMAIL PROTECTED]>, relay=none, delay=71, delays=41/0.28/30/0, dsn=4.4.1, status=deferred (connect to 192.168.1.86[192.168.1.86]: Connection timed out) Aug 18 08:59:29 smt3net postfix/qmgr[3042]: F3B4170D: from=<[EMAIL PROTECTED]>, size=378, nrcpt=1 (queue active) Aug 18 08:59:29 smt3net postfix/qmgr[3042]: AC415701: from=<[EMAIL PROTECTED]>, size=393, nrcpt=1 (queue active) Aug 18 08:59:59 smt3net postfix/smtp[3052]: connect to 192.168.1.86[ 192.168.1.86]: Connection timed out (port 10024) postfix - 192.168.2.190 amavis+clamav - 192.168.1.86 Did I something wrong? [1] - http://marc.info/?l=amavis-user&m=115016996412498 On Tue, Aug 5, 2008 at 7:56 AM, Eduardo Júnior <[EMAIL PROTECTED]> wrote: > > Ok, thanks. > > I will test the amavis + clamav only in a host. > This is the scenario that seems more feasible, because I can not use nfs > here. > > > > On Sun, Aug 3, 2008 at 8:45 AM, Michael Scheidell <[EMAIL PROTECTED]>wrote: > >> >> >> If you are REALLY SET on getting clamd running on a separate machine, you >> could use an nfs mount. >> >> Do something like this in amavisd.conf: >> @av_scanners = ( >> ['ClamAV-clamd', >> \&ask_daemon, ["CONTSCAN ".$rootdir."{}\n", "baseip.loc:3310"], >> qr/\bOK$/, qr/\bFOUND$/, >> qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], >> ); >> >> >> Where $rootdir is the nfs mount of amavishome/tmp dir, baseip.loc resolves >> to the ip of the box. You need to put clamd into tcp mode (clamd.conf on >> BOTH BOXES (I think). >> >> No, you won't use tcp streaming, tcp:contscan sends the COMMANDS to clamd >> (you can test with tcp dump). >> >> Probally better to use amavisd-new on second box. It would send the >> compressed email to amavisd-new, amavisd-new on second box would unzip any >> attachments locally, clamd would act on those. >> Doing it via nfs mount, you would be using clamd on the second box, >> working >> on an nfs mount, scanning unziped files. Lots more overhead. >> >> -- Eduardo Júnior GNU/Linux user #423272 :wq ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
