[exim] Delays due to lookups of own hostname

Góra strony
Delete this message
Reply to this message
Autor: Stefan Hornburg
Data:  
Dla: exim-users
Temat: [exim] Delays due to lookups of own hostname
Hello,

I'm using Exim4 on a couple of Debian servers, both Etch and Sarge. On
sending emails (at least locally) there is a delay caused by Exim trying
to resolve its own hostname by DNS.

How can I get rid of these unnecessary DNS queries ?

Extract of strace:

musikwein:/etc/exim4/conf.d/main# strace -e send,recvfrom,connect exim4
-bt racke@???
connect(3, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
connect(3, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
connect(4, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.98.98")}, 28) = 0
send(4, "\366D\1\0\0\1\0\0\0\0\0\0\tmusikwein\17musikrest"..., 46, 0) = 46
recvfrom(4, "\366D\201\200\0\1\0\0\0\0\0\0\tmusikwein\17musikrest"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.98.98")}, [16]) = 46
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.98.98")}, 28) = 0
send(4, "\366E\1\0\0\1\0\0\0\0\0\0\tmusikwein\0\0\34\0\1", 27, 0) = 27
connect(5, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.99.99")}, 28) = 0
send(5, "\366E\1\0\0\1\0\0\0\0\0\0\tmusikwein\0\0\34\0\1", 27, 0) = 27
connect(6, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.100.100")}, 28) = 0
send(6, "\366E\1\0\0\1\0\0\0\0\0\0\tmusikwein\0\0\34\0\1", 27, 0) = 27
send(4, "\366E\1\0\0\1\0\0\0\0\0\0\tmusikwein\0\0\34\0\1", 27, 0) = 27
send(5, "\366E\1\0\0\1\0\0\0\0\0\0\tmusikwein\0\0\34\0\1", 27, 0) = 27
send(6, "\366E\1\0\0\1\0\0\0\0\0\0\tmusikwein\0\0\34\0\1", 27, 0) = 27
connect(4, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
connect(3, {sa_family=AF_FILE, path="/var/run/mysqld/mysqld.sock"}, 110) = 0
R: dnslookup for racke@???
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.98.98")}, 28) = 0
send(4, "\366F\1\0\0\1\0\0\0\0\0\0\7linuxia\2de\0\0\17\0\1", 28, 0) = 28
recvfrom(4,
"\366F\201\200\0\1\0\1\0\0\0\0\7linuxia\2de\0\0\17\0\1\300"..., 2048, 0,
{sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.98.98")}, [16]) = 59
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.98.98")}, 28) = 0
send(4, "\366G\1\0\0\1\0\0\0\0\0\0\4mail\6cobolt\3net\0\0\34\0"..., 33,
0) = 33
recvfrom(4,
"\366G\201\200\0\1\0\0\0\0\0\0\4mail\6cobolt\3net\0\0\34"..., 2048, 0,
{sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.98.98")}, [16]) = 33
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.98.98")}, 28) = 0
send(4, "\366H\1\0\0\1\0\0\0\0\0\0\4mail\6cobolt\3net\0\0\1\0"..., 33,
0) = 33
recvfrom(4, "\366H\201\200\0\1\0\1\0\0\0\0\4mail\6cobolt\3net\0\0\1"...,
2048, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("213.133.98.98")}, [16]) = 49
racke@???
router = dnslookup, transport = remote_smtp
host mail.cobolt.net [213.180.160.231] MX=10

Regards
    Racke



--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team