[exim-dev] [Bug 1832] Log reason for disconnection, as retur…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 1832] Log reason for disconnection, as returned by remote host
https://bugs.exim.org/show_bug.cgi?id=1832

--- Comment #2 from Sander Hoentjen <sander@???> ---
The relevant strace output is below, so it definitely looks like Exim has
enough information to log the error.

987485 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
987485 setsockopt(7, SOL_TCP, TCP_NODELAY, [1], 4) = 0
987485 bind(7, {sa_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("<local_ip>")}, 16) = 0
987485 alarm(300)                       = 0
987485 connect(7, {sa_family=AF_INET, sin_port=htons(25),
sin_addr=inet_addr("213.75.3.30")}, 16) = 0
987485 alarm(0)                         = 300
987485 getsockname(7, {sa_family=AF_INET, sin_port=htons(47197),
sin_addr=inet_addr("<local_ip>")}, [16]) = 0
987485 setsockopt(7, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
987485 select(8, [7], NULL, NULL, {300, 0}) = 1 (in [7], left {299, 995356})
987485 recvfrom(7, "220 cpsps-ews06.kpnxchange.com kpnxchange.com Fri, 3 Jun
2016 10:11:50 +0200 \r\n", 4096, 0, NULL, NULL) = 79
987485 sendto(7, "EHLO <local_hostname>\r\n", 31, 0, NULL, 0) = 31
987485 select(8, [7], NULL, NULL, {300, 0}) = 1 (in [7], left {299, 994933})
987485 recvfrom(7, "421 5.5.0 Your IP has been blacklisted. Please contact
abuse@??? for more information.\r\n", 4096, 0, NULL, NULL) = 
92
987485 sendto(7, "HELO <local_hostname>\r\n", 31, 0, NULL, 0) = 31
987485 select(8, [7], NULL, NULL, {300, 0}) = 1 (in [7], left {299, 999998})
987485 recvfrom(7, "", 4096, 0, NULL, NULL) = 0
987485 close(7)                         = 0
987485 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0
987485 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0
987485 close(4)                         = 0
987485 open("/var/log/exim/mainlog", O_WRONLY|O_APPEND) = 4
987485 fcntl(4, F_GETFD)                = 0
987485 fcntl(4, F_SETFD, FD_CLOEXEC)    = 0
987485 fstat(4, {st_mode=S_IFREG|0640, st_size=56674496, ...}) = 0
987485 write(4, "2016-06-03 10:11:50 1b8gDB-001JHz-11 H=mailin.kpnmail.nl
[213.75.3.30]: Remote host closed connection in response to HELO s
185.webhostingserver.nl\n", 147) = 147
987485 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0
987485 write(5, "2016-06-03 10:11:50 H=mailin.kpnmail.nl [213.75.3.30]: Remote
host closed connection in response to HELO s185.webhostingser
ver.nl\n", 130) = 130


--
You are receiving this mail because:
You are on the CC list for the bug.