[Exim] performance problems with exim

Top Pagina
Delete this message
Reply to this message
Auteur: r00tk4i
Datum:  
Aan: exim-users
Onderwerp: [Exim] performance problems with exim
Dear List,

I am using Exim 3.34 on alpha (debian woody) with amavis snapshot-20010714
and sophos sweep for scanning incoming mail.

Everything is working fine, until exim recieves lots of emails
- a few hundred - in a short time, each right after another. this causes
performance problems on my box (DEC Alpha EV56 500MHZ w 640MB ram),
kernel: out of memory, killing process exim

i think, this is because i have to deliver all outgoing mail to a local
mailbox for archiving. this causes exim to pass all outgoing email to the
sweep/amavis engine twice. once exim recieves it, and once exim delivers
it to a local mailbox. (duplicated delivery for each outgoing msg =
duplicated virus scanning).

this causes too much load for the server under processing high number of
emails in a short time.

has anyone faced this problem? does anyone know a solution for this?

maybe this is not the best solution for archiving all outgoing mail, can i
do it better somehow?

[include exim.conf begins]

qualify_domain = xxx.hu
local_domains = xxx.hu
local_domains_include_host = true
local_domains_include_host_literals = true
relay_domains = xxx.hu:yyy.hu
never_users = root
host_lookup = *
message_size_limit = 5M
host_accept_relay = "192.168.0.0/16"
trusted_users = mail:amavis
message_filter = /etc/main.filter
message_body_visible = 5000
message_filter_user = 8
message_filter_group = 8
message_filter_directory_transport = address_directory
message_filter_file_transport = address_file
smtp_verify = false
smtp_accept_max = 10
smtp_accept_queue = 8
gecos_pattern = ^([^,:]*)
gecos_name = $1
smtp_accept_queue_per_connection = 100
freeze_tell_mailmaster = true
#                      TRANSPORTS CONFIGURATION
amavis:
  driver = pipe
  command = "/usr/sbin/amavis <${sender_address}> ${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/amavis"
  headers_add = "X-Virus-Scanned: by rew"


local_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
file = /mailspool/spool/${local_part}

address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile

address_directory:
driver = appendfile
no_from_hack
prefix = ""
suffix = ""
# maildir_format


address_reply:
driver = autoreply

procmail_pipe:
driver = pipe
command = "/usr/bin/procmail -d ${local_part}"
return_path_add
delivery_date_add
envelope_to_add
check_string = "From "
escape_string = ">From "
user = $local_part
group = mail


remote_smtp:
driver = smtp


#                      DIRECTORS CONFIGURATION


amavis_director:
condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
driver = smartuser
transport = amavis

real_local:
prefix = real-
driver = localuser
transport = local_delivery

system_aliases:
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
file = /etc/aliases
search_type = lsearch

procmail:
driver = localuser
transport = procmail_pipe
require_files =
${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmai
no_verify

userforward:
driver = forwardfile
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
no_verify
check_ancestor
file = .forward
modemask = 002
filter

localuser:
driver = localuser
transport = local_delivery


#                      ROUTERS CONFIGURATION
#                          ORDER DOES MATTER


smarthost:
driver = domainlist
transport = remote_smtp
route_list = "* xxx.yyy.hu bydns_a"


#                      RETRY CONFIGURATION
*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h


[include exim.conf ends]



TIA,
rew
__
C6C12CD1FE3DD53652A65C5C860B9F36B03D1E1B