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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: admin
Datum:  
To: exim-dev
Betreff: [exim-dev] [Bug 1832] Log reason for disconnection, as returned by remote host
https://bugs.exim.org/show_bug.cgi?id=1832

--- Comment #4 from Sander Hoentjen <sander@???> ---

I created an expect script to reproduce:
# cat smtp_server.expect
================
#!/usr/bin/expect

spawn nc -l <some_ip> 25
#stty -echo

exp_internal 1


expect -re ".*" {send -- "200 blabla.example.com ESMTP\r"}

expect {
       timeout {puts "timed out"; exit 42}
       eof {puts "eof"; exit 99}
       -re "EHLO*" {send -- "421 5.5.0 Your IP has been blacklisted.\r"}
       -re "HELO*" {send -- "421 5.5.0 Your IP has been blacklisted.\r"}
}


set timeout 1
expect {
    timeout {puts "timed out"; exit 42}
}
================
I can reproduce the problem with above script. Exim connects, script sends "200
blabla.example.com ESMTP"
exim sends EHLO, script replies with 421 and disconnects a second later



I guess one option would be to always log the reply to the EHLO, before
continuing to try the HELO.

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