logo       

Re: [HS] Postfix + Amavis + Clamav: msg#00675

Subject: Re: [HS] Postfix + Amavis + Clamav
LtSich wrote:

J'aimerai utiliser ça pour faire quelque chose dans le genre :
/!^X-Scanned-By: Amavis at mx1.cafe-philo.net/    FILTER vscan:localhost

c'est un postfix 1.x ou 2.x sur la 9.1 ?
personnellement avec un 2.x je fonctionne ainsi :

--au niveau du main.cf--
postconf -n | grep content
content_filter = smtp-amavis:[127.0.0.1]:10024
----
donc postfix envois le necessaire a amavis sur le port 10024

--au niveau du master.cf--
smtp-amavis unix -      -       n       -       2  lmtp
  -o smtp_data_done_timeout=1200
127.0.0.1:10025 inet n  -       n       -       5  smtpd
   -o content_filter=
   -o local_recipient_maps=
   -o relay_recipient_maps=
   -o smtpd_restriction_classes=
   -o smtpd_client_restrictions=
   -o smtpd_helo_restrictions=
   -o smtpd_sender_restrictions=
   -o smtpd_recipient_restrictions=permit_mynetworks,reject
   -o mynetworks=127.0.0.0/8
   -o strict_rfc821_envelopes=yes
   -o smtpd_error_sleep_time=0
   -o smtpd_soft_error_limit=1001
   -o smtpd_hard_error_limit=1000
---
bref on 'ouvre' le necessaire pour la réinjection des mails en s'assurant qu'il ne repartira pas dans une boucle .

et enfin au niveau de la configuration de amavis
---
$forward_method = 'smtp:127.0.0.1:10025';
$notify_method = $forward_method;
---

Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";
<Prev in Thread] Current Thread [Next in Thread>