[Exim] Re: Very slow mailq with dial-up settings

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Matej Cepl
Date:  
À: exim-users
Sujet: [Exim] Re: Very slow mailq with dial-up settings
On 2003-07-29, 08:42 GMT, Philip Hazel wrote:
> That suggests that the delay is in checking whether komensky.volny.cz is
> in local_domains.
>
> However, it is now over 2 years since I last worked on Exim 3. I do not
> normally answer detailed questions on it any more. However, I will take
> a very brief look at the code ...


Thank you very much for taking care of this obsolete version and
a clueless user!

> Is "komensky.volny.cz" the name of your host? Have you set
> primary_hostname in your configuration? If not, Exim will be trying to
> find it by calling uname(). What is the output from the command


~$ uname -a
Linux komensky 2.4.20 #2 Ne kvě 18 18:08:31 EDT 2003 i586 unknown
~$ hostname -f
komensky.volny.cz
~$

And no, I have not set primary_hostname, because this is notebook and it
is often connected to the Internet with different ISP provider and thus
it is in different domain. Do I have to set the variable? If the worst
comes to worst I can do something like

primary_hostname=${lookup{domain}lsearch{/etc/exim/domainlist}{$value}}

and then set the value of domain in /etc/exim/domainlist.

Or is it possible to parse /etc/hosts with exim? I have this as a first
line of the file, is it possible somehow to parse it?

   127.0.0.1      komensky.volny.cz komensky    localhost


Something like

primary_hostname=${sg${lookup{127.0.0.1}lsearch{/etc/hosts}{$value}}\
{^(\S+)\s*(\S+)\s*(\S+)\s*\$}{$1}}

(unfortunately, this one doesn't work; why?)

It would be nice to maintain only one file. Or if I can get output of
'hostname -f' into that variable (but it is not possible to do it in v.
3, is it?).

> ? Does it give your host name as a single component? If so, Exim will be
> doing a DNS lookup to find the full name. Maybe that's where the delay
> is. Try again with -d11; if I recall correctly, that should also show
> you the DNS resolver debugging output.


Yes, that's it. Thanks! Do you think, that any of the suggested ways
could work?

Thanks,

      Matej


--
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488