[Exim] Very slow mailq with dial-up settings

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Matej Cepl
Date:  
À: exim-users
Sujet: [Exim] Very slow mailq with dial-up settings
Hi,

I have here exim (version 3.35 #1 built 15-Apr-2002 20:48:24) running on
Debian/stable and I am connected to the Internet with PPP (see diff of
my /etc/exim/exim.conf against example.conf). My problem is that
whenever I run mailq, sending new mail or even exim -bV, the response is
really slow:

~$ time exim -bV
Exim version 3.35 #1 built 15-Apr-2002 20:48:24
Copyright (c) University of Cambridge 2001

   real    0m10.104s
   user    0m0.030s
   sys     0m0.030s
   ~$


I suspect bydns_a in route_list to be the case, but I have local DNS
server (bind9), so there should be no delays IMHO.

Any thoughts, where should I look for the solution, please (needless to
say, that I have tried look through info file and groups.google.com
without any real results)?

      Thanks,


         Matej


===================================================================
--- example.conf    Sun Jul 27 13:24:12 2003
+++ exim.conf    Sun Jul 27 13:24:33 2003
@@ -1,55 +1,110 @@
-forbid_domain_literals
+local_domains = @:localhost
 local_domains_include_host = true
+local_domains_include_host_literals = true
 never_users = root
-host_lookup = *
-ignore_errmsg_errors_after = 2d
-timeout_frozen_after = 7d
+host_lookup = ! *
+headers_check_syntax
+host_accept_relay = 127.0.0.1 : ::::1 : 192.168.0.0/30
+host_auth_accept_relay = *
+smtp_verify = false
+gecos_pattern = ^([^,:]*)
+gecos_name = $1
+smtp_accept_queue_per_connection = 100
+freeze_tell_mailmaster = true
+received_header_text = "Received: \
+         ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
+         {${if def:sender_ident {from ${sender_ident} }}\
+         ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
+         by ${primary_hostname} \
+         ${if def:received_protocol {with ${received_protocol}}} \
+         (Exim ${version_number} #${compile_number} (Debian))\n\t\
+         id ${message_id}\
+         ${if def:received_for {\n\tfor <$received_for>}}"
+receiver_try_verify = true
+queue_list_requires_admin = false
+trusted_groups = mail
+prod_requires_admin = false
+admin_groups = mail
+queue_remote_domains = ${lookup{nequeue}lsearch{/etc/exim/queuelist}{$value}}
+auto_thaw = 30s
 end
-remote_smtp:
-  driver = smtp
 local_delivery:
   driver = appendfile
-  file = /var/mail/$local_part
-  delivery_date_add
-  envelope_to_add
-  return_path_add
   group = mail
   mode = 0660
+  mode_fail_narrower = false
+  envelope_to_add = true
+  return_path_add = true
+  file = /var/spool/mail/${local_part}
 address_pipe:
   driver = pipe
-  return_output
+  path = /usr/bin:/bin:/usr/local/bin
+  group=mail
+  return_fail_output = true
+  use_shell=true
 address_file:
   driver = appendfile
-  delivery_date_add
-  envelope_to_add
-  return_path_add
+  envelope_to_add = true
+  return_path_add = true
+address_directory:
+  driver = appendfile
+  no_from_hack
+  prefix = ""
+  suffix = ""
+  directory = /home/${local_part}/.mail/main/
+  maildir_format
 address_reply:
   driver = autoreply
+procmail_pipe:
+  driver = pipe
+  command = "/usr/bin/procmail"
+  return_path_add
+  delivery_date_add
+  envelope_to_add
+  suffix = ""
+remote_smtp:
+  driver = smtp
+  #authenticate_hosts = smtp.surfbest.net
 end
+real_local:
+  prefix = real-
+  driver = localuser
+  transport = local_delivery
 system_aliases:
   driver = aliasfile
-  file = /etc/aliases
-  search_type = lsearch
   file_transport = address_file
   pipe_transport = address_pipe
+  file = /etc/aliases
+  search_type = lsearch
 userforward:
   driver = forwardfile
-  file = .forward
-  no_verify
-  no_expn
-  check_ancestor
   file_transport = address_file
+  directory_transport = address_directory
   pipe_transport = address_pipe
   reply_transport = address_reply
+  no_verify
+  check_ancestor
+  check_local_user
+  file = .forward
+  modemask = 002
+  filter
+procmail:
+  driver = localuser
+  transport = procmail_pipe
+  require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
+  no_verify
 localuser:
   driver = localuser
   transport = local_delivery
 end
-lookuphost:
-  driver = lookuphost
+smarthost:
+  driver = domainlist
   transport = remote_smtp
-  ignore_target_hosts = 127.0.0.0/8
+  #route_list = "* smtp.surfbest.net bydns_a"
+  route_list = * ${lookup{smart}lsearch{/etc/exim/smarthost}{$value}} bydns_a
 end
-*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,8h
+*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h
 end
+*@@  ${lookup{$1}lsearch{/etc/email-addresses}\
+                        {$value}fail} frFs
 end