clamav config probléma

Fórumok

Sziasztok!

Redhat alapú linuxra szeretnék egy kis vírusvédelmet vakítani. Clamavot szeretném mailscannerrel dolgoztatni ami a levelekben keresne vírus. Nagyjából sikerült is belőni. Ez alapján dolgoztam:

necessary, execute the following commands before configuring MailScanner:

service postfix stop
chkconfig postfix off
Open /etc/postfix/main.cf and make sure that you add the following line:

header_checks = regexp:/etc/postfix/header_checks

Next, open the file /etc/postfix/header_checks and add this line:

/^Received:/ HOLD

This tells Postfix to move all messages to the HOLD queue. Now edit the file /etc/MailScanner/MailScanner.conf and change the following 6 settings, which are all near the top of the file:

Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
MTA = postfix
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin

Next, make sure Postfix can write to /var/spool/MailScanner/incoming and /var/spool/MailScanner/quarantine:

chown postfix.postfix /var/spool/MailScanner/incoming
chown postfix.postfix /var/spool/MailScanner/quarantine
Finally, execute the following commands and you're ready for testing:

mkdir /var/spool/MailScanner/spamassassin
chown postfix.postfix /var/spool/MailScanner/spamassassin
mkdir /var/spool/mqueue
chown postfix.postfix /var/spool/mqueue
touch /var/lock/subsys/MailScanner.off

Next, open the file /etc/postfix/header_checks and add this line:

/^Received:/ HOLD <<<<----- itt akadtam el. Ezt hova tegyem a header_checks filen belül? Valószínüleg ez a gond mert szerintem nem rakja be a levelet átvizsgálásra.

Működik már a mailscanner, és a clamav is de nem keres vírust mivel teszteltem egy levélben az "eicar" vírustesztével, de nemfogta meg.
Nemtudom mennyire írtam le érthetően a gondom. Remélem tudtok segíteni. hali!

Hozzászólások

Ezt a cuccost ugyan nem vagom, de ha csak virusellenorizni akarod a leveleket, probald ki a clapf nevu content-filtert, ami tudja ezt. Abban tudok segiteni, leven, hogy en irtam :-)

ASK Me No Questions, I'll Tell You No Lies

Hi!

próbáld meg hogy

Run As User = amavis
Run As Group = amavis legyen!

mert az aamavis az interfész a virusirtó és a postfix között.
továbbá chmod,chown helyes legyen!

apam. lehet oreg vagyok, meg szuklatokoru, de nekem ez tul bonyas. mennyivel eccerubb a sendmail + clamav-milter... raadasul az rh-ban ugye alap a sendmail; a clamavot meg a clmiltert meg verziotol fuggoen extrasbol vagy Dag -tol rpm --install oszt kesz.