SZÉPE Viktor
2017-03-25 18:24:44 UTC
Hello!
I am using 0.73.1-1.6
A monitoring program called "Monit" checks port 25 on localhost.
Courier listens only on localhost on this server.
Monit sends:
EHLO localhost
QUIT
Source code:
https://bitbucket.org/tildeslash/monit/src/8584ce1f0a2af60ca615e126c37284238d611e29/src/notification/SMTP.c?at=master&fileviewer=file-view-default#SMTP.c-193:216
Rarely it times out after 5 seconds. This incident is several months old.
1) Could failed DNS lookups be the reason?
PTR? 1.0.0.127.in-addr.arpa.
A? localhost.
AAAA? localhost.
2) Is it possible for Courier to skip DNS lookups for "localhost"?
I wonder why Courier is not using gethostbyname().
/etc/hosts contains:
127.0.0.1 localhost.localdomain localhost
Thank you!
tcpdump:
17:52:17.510906 IP (tos 0x0, ttl 64, id 50144, offset 0, flags [DF],
proto UDP (17), length 68)
185.33.146.202.44816 > 81.2.192.131.53: 36007+ PTR?
1.0.0.127.in-addr.arpa. (40)
17:52:17.511163 IP (tos 0x0, ttl 63, id 15247, offset 0, flags [none],
proto UDP (17), length 91)
81.2.192.131.53 > 185.33.146.202.44816: 36007* 1/0/0
1.0.0.127.in-addr.arpa. PTR localhost. (63)
17:52:17.511296 IP (tos 0x0, ttl 64, id 50145, offset 0, flags [DF],
proto UDP (17), length 55)
185.33.146.202.57740 > 81.2.192.131.53: 25967+ A? localhost. (27)
17:52:17.511542 IP (tos 0x0, ttl 63, id 15248, offset 0, flags [none],
proto UDP (17), length 130)
81.2.192.131.53 > 185.33.146.202.57740: 25967 NXDomain 0/1/0 (102)
17:52:17.511657 IP (tos 0x0, ttl 64, id 50146, offset 0, flags [DF],
proto UDP (17), length 55)
185.33.146.202.50565 > 81.2.192.131.53: 30003+ AAAA? localhost. (27)
17:52:17.511880 IP (tos 0x0, ttl 63, id 15249, offset 0, flags [none],
proto UDP (17), length 130)
81.2.192.131.53 > 185.33.146.202.50565: 30003 NXDomain 0/1/0 (102)
17:52:17.512032 IP (tos 0x0, ttl 64, id 50147, offset 0, flags [DF],
proto UDP (17), length 68)
185.33.146.202.43555 > 81.2.192.131.53: 59819+ PTR?
1.0.0.127.in-addr.arpa. (40)
17:52:17.512265 IP (tos 0x0, ttl 63, id 15250, offset 0, flags [none],
proto UDP (17), length 91)
81.2.192.131.53 > 185.33.146.202.43555: 59819* 1/0/0
1.0.0.127.in-addr.arpa. PTR localhost. (63)
17:52:17.512372 IP (tos 0x0, ttl 64, id 50148, offset 0, flags [DF],
proto UDP (17), length 55)
185.33.146.202.57447 > 81.2.192.131.53: 64566+ A? localhost. (27)
17:52:17.512590 IP (tos 0x0, ttl 63, id 15251, offset 0, flags [none],
proto UDP (17), length 130)
81.2.192.131.53 > 185.33.146.202.57447: 64566 NXDomain 0/1/0 (102)
17:52:17.512697 IP (tos 0x0, ttl 64, id 50149, offset 0, flags [DF],
proto UDP (17), length 55)
185.33.146.202.36041 > 81.2.192.131.53: 28274+ AAAA? localhost. (27)
17:52:17.512954 IP (tos 0x0, ttl 63, id 15252, offset 0, flags [none],
proto UDP (17), length 130)
81.2.192.131.53 > 185.33.146.202.36041: 28274 NXDomain 0/1/0 (102)
SZÉPE Viktor
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
I am using 0.73.1-1.6
A monitoring program called "Monit" checks port 25 on localhost.
Courier listens only on localhost on this server.
Monit sends:
EHLO localhost
QUIT
Source code:
https://bitbucket.org/tildeslash/monit/src/8584ce1f0a2af60ca615e126c37284238d611e29/src/notification/SMTP.c?at=master&fileviewer=file-view-default#SMTP.c-193:216
Rarely it times out after 5 seconds. This incident is several months old.
1) Could failed DNS lookups be the reason?
PTR? 1.0.0.127.in-addr.arpa.
A? localhost.
AAAA? localhost.
2) Is it possible for Courier to skip DNS lookups for "localhost"?
I wonder why Courier is not using gethostbyname().
/etc/hosts contains:
127.0.0.1 localhost.localdomain localhost
Thank you!
tcpdump:
17:52:17.510906 IP (tos 0x0, ttl 64, id 50144, offset 0, flags [DF],
proto UDP (17), length 68)
185.33.146.202.44816 > 81.2.192.131.53: 36007+ PTR?
1.0.0.127.in-addr.arpa. (40)
17:52:17.511163 IP (tos 0x0, ttl 63, id 15247, offset 0, flags [none],
proto UDP (17), length 91)
81.2.192.131.53 > 185.33.146.202.44816: 36007* 1/0/0
1.0.0.127.in-addr.arpa. PTR localhost. (63)
17:52:17.511296 IP (tos 0x0, ttl 64, id 50145, offset 0, flags [DF],
proto UDP (17), length 55)
185.33.146.202.57740 > 81.2.192.131.53: 25967+ A? localhost. (27)
17:52:17.511542 IP (tos 0x0, ttl 63, id 15248, offset 0, flags [none],
proto UDP (17), length 130)
81.2.192.131.53 > 185.33.146.202.57740: 25967 NXDomain 0/1/0 (102)
17:52:17.511657 IP (tos 0x0, ttl 64, id 50146, offset 0, flags [DF],
proto UDP (17), length 55)
185.33.146.202.50565 > 81.2.192.131.53: 30003+ AAAA? localhost. (27)
17:52:17.511880 IP (tos 0x0, ttl 63, id 15249, offset 0, flags [none],
proto UDP (17), length 130)
81.2.192.131.53 > 185.33.146.202.50565: 30003 NXDomain 0/1/0 (102)
17:52:17.512032 IP (tos 0x0, ttl 64, id 50147, offset 0, flags [DF],
proto UDP (17), length 68)
185.33.146.202.43555 > 81.2.192.131.53: 59819+ PTR?
1.0.0.127.in-addr.arpa. (40)
17:52:17.512265 IP (tos 0x0, ttl 63, id 15250, offset 0, flags [none],
proto UDP (17), length 91)
81.2.192.131.53 > 185.33.146.202.43555: 59819* 1/0/0
1.0.0.127.in-addr.arpa. PTR localhost. (63)
17:52:17.512372 IP (tos 0x0, ttl 64, id 50148, offset 0, flags [DF],
proto UDP (17), length 55)
185.33.146.202.57447 > 81.2.192.131.53: 64566+ A? localhost. (27)
17:52:17.512590 IP (tos 0x0, ttl 63, id 15251, offset 0, flags [none],
proto UDP (17), length 130)
81.2.192.131.53 > 185.33.146.202.57447: 64566 NXDomain 0/1/0 (102)
17:52:17.512697 IP (tos 0x0, ttl 64, id 50149, offset 0, flags [DF],
proto UDP (17), length 55)
185.33.146.202.36041 > 81.2.192.131.53: 28274+ AAAA? localhost. (27)
17:52:17.512954 IP (tos 0x0, ttl 63, id 15252, offset 0, flags [none],
proto UDP (17), length 130)
81.2.192.131.53 > 185.33.146.202.36041: 28274 NXDomain 0/1/0 (102)
SZÉPE Viktor
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
+36-20-4242498 ***@szepe.net skype: szepe.viktor
Budapest, III. kerület
+36-20-4242498 ***@szepe.net skype: szepe.viktor
Budapest, III. kerület