[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

emim + amavis + clamav



	All

	Montei uma intranet aqui em casa e estou tentando configurar o trio
exim+amavis+clamav, mas estou tendo problemas. Antes de instalar o
amavis+clamav o servidor de email exim+courier-imap esta funcionando
correntamente.

	Para fazer a instalação e configuração fiz o seguinte :

######################################################################

# pacotes instalados

exim           3.36-6

courier-authda 0.39.1-1
courier-base   0.39.1-1
courier-imap   1.5.1-1

amavis-ng      0.1.6.2-1

clamav         0.60-1
clamav-base    0.60-1
clamav-freshcl 0.60-1

# textos consultados
/usr/share/doc/amavis-ng/README.exim

# exim.conf

MAIN CONFIGURATION SETTINGS
trusted_users = amavis

TRANSPORT CONFIGURATION
amavis:
  driver = pipe
  command = "/usr/bin/amavis -f <${sender_address}> -d ${pipe_addresses}"
  prefix =
  suffix =
  check_string =
  escape_string =
  # for debugging change return_output to true
  return_output = false
  return_path_add = false
  user = amavis
  group = amavis
  path = "/bin:/sbin:/usr/bin:/usr/sbin"
  current_directory = "/var/spool/amavis-ng"
  headers_add = "X-Virus-Scanned: by AMaViS-ng"

DIRECTORS CONFIGURATION
amavis_director:
  condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
  driver = smartuser
  transport = amavis
			
ROUTERS CONFIGURATION
amavis_router:
  condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
  driver = domainlist
  route_list = "*"
  transport = amavis

# amavis.conf

[global]

;; Which MTA to use. Specify one.
 mail-transfer-agent = DebugMTA
 mail-transfer-agent = Exim
;; Which virus scanner to use. Use more than one if you desire
 virus-scanner = CLAM
 virus-scanner = CLAMD
;; lha, rar, unarj, compress, zoo are non-free
extractors=Mail, GZIP, BZIP2, LHA, ARC, Zip, Tar, ZOO, RAR, TNEF, LHA, RAR,
ARJ, COMPRESS, ZOO;; Who should be notified?
 notifiers=Sender, Recipients, Admin
;; What should be inserted into the message's headers if it is let
;; through? This does not work for the Milter or Courier interfaces.
 x-header = true
 x-header-tag = X-Scanned-By
 x-header-line = AMaViS-ng at a badly configured site.

[MIME]

;; Where should infected mail be stored? (Only the actual mail, not
;; the unpacked attachments)
quarantine dir = /var/spool/amavis-ng/quarantine
;; If problems occur, put message into this directory
problem dir = /var/spool/amavis-ng/problems
;; Should the unpacking directory be removed afterwards? Set to 'no'
;; only for debugging purposes
 cleanup = no

[Logging]
;; Use syslog? Facility (e.g. mail|info) or "no"
 syslog = mail|info
 syslog loglevel = 3
;; Log to which file? And atwhat level?
 logfile = /var/log/amavis-ng/amavis-ng.log
 logfile loglevel = 6

[Notify]
;; Which domains should be considered local? Recipients are notified
;; about mail that was stopped only if they are local. The domain name
;; is matches against this Perl regular expression, case-insensitively
 local domain = particula.com.br
;; Who is the mail admin? Comma separated list if multiple admins
 admin = cosmo@particula.com.br

[Exim]
;; Location and arguments of the binary
 exim = /usr/sbin/exim
 args = -oMr no-scan -i -f 
 args = -i -f

[security]
;; Resource limits for unpacking each message
;; How many levels of unpacking do we do?
 maxlevels = 20
;; How many files do we want to write?
 maxfiles = 1000
;; How much diskspace do we want to consume?
 maxspace = 30M
;; If amavis is run as UID root, drop root privileges to uid, gid.
 uid = amavis
 gid = amavis

[CLAM]
 clamscan = /usr/bin/clamscan

######################################################################

	Esta aparecendo a seguinte mensagem de erro no arquivo
/var/log/exim/maillog

2003-07-09 11:46:38 19aGDJ-00060z-00 ** logan@particula.com.br
D=amavis_director T=amavis: Child process of amavis transport returned 255
(could mean shell command ended by signal 127 (Unknown signal 127)) from
command: /usr/bin/amavis 
2003-07-09 11:46:38 19aGDO-000616-00 <= <> R=19aGDJ-00060z-00 U=mail
P=local S=1271 
2003-07-09 11:46:38 19aGDJ-00060z-00 Error message sent to
root@particula.com.br 2003-07-09 
11:46:39 19aGDJ-00060z-00 Completed-- 

[ ]'s
 
  *******************    .''`.
* idic@terra.com.br  *  : :'  :
* GNU/Linux Debian   *  `. `'`
  *******************     `-
Gnupg ID 0x01186BE1
Key fingerprint =3D F17E 75C6 CE00 0E09 F63B  71B0 A0D2 FAD9 0118 6BE1

O homem que não tem sorte com as mulheres não sabe a sorte que tem.



Reply to: