Postfix+Clamav+Spamassassin
Publicado: Mar, 06 Sep 2011, 15:32
Bueno acabo de configurar el clamav para que s eme integrara a postfix, no con mailscanner sino con clamsmtp. El caso es que todo sigue funcionando perfectamente, lo que pasa es que cuando paso un virus (compactado en un rar) no me lo detecta, el virus que estoy pasando es spermici.exe, si alguien sabe a que se puede deber esto. De todas formas aqui les dejo mis config
/etc/clamsmtpd.conf escribió: # ------------------------------------------------------------------------------
# SAMPLE CLAMSMTPD CONFIG FILE
# ------------------------------------------------------------------------------
#
# - Comments are a line that starts with a #
# - All the options are found below with their defaults commented out
# The address to send scanned mail to.
# This option is required unless TransparentProxy is enabled
OutAddress: 10026
# The maximum number of connection allowed at once.
# Be sure that clamd can also handle this many connections
#MaxConnections: 64
# Amount of time (in seconds) to wait on network IO
#TimeOut: 180
# Address to listen on (defaults to all local addresses on port 10025)
Listen: 127.0.0.1:10025
# The address clamd is listening on
ClamAddress: /var/run/clamav/clamd.ctl
# A header to add to all scanned email
#Header: X-AV-Checked: ClamAV using ClamSMTP
# Directory for temporary files
TempDirectory: /var/spool/clamsmtp
# PidFile: location of PID file
PidFile: /var/run/clamsmtp/clamsmtpd.pid
# Whether or not to bounce email (default is to silently drop)
#Bounce: off
# Whether or not to keep virus files
#Quarantine: off
# Enable transparent proxy support
#TransparentProxy: off
# User to run as
User: clamsmtp
# Virus actions: There's an option to run a script every time a
# virus is found. Read the man page for clamsmtpd.conf for details.
/etc/postfix/main.cf escribió: ...
#################### CLAMAV #######################
content_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappings
...
Si alguien tiene algun otro virus por favor enviemelo, por cierto ya actualice las bases del clamav (freshclam)/etc/postfix/master.cf escribió: ...
############# CLAMAV ##############
# AV scan filter (used by content_filter)
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
# For injecting mail back into postfix from the filter
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
...