Stan Hoeppner put forth on 8/11/2010 3:31 AM: > I was just looking at a Logwatch summary. The data the OP is requesting _is_ > in the Postfix logs somewhere, as Logwatch is tallying the disconnection > phases: > > 81 Connections lost (inbound) > 61 After DATA > 11 After CONNECT > 7 After RCPT > 2 After EHLO > > If you need this information _per msg_ with detail, you'll have to go digging > and figure it out for yourself. The data _is_ in there though. And, yes, I > use smtpd_delay_reject=yes, the default.
Found it. And not really hard to find: ~$ grep " lost connection " /var/log/mail.log|mawk {print'($6, $7, $8, $9, $10, $11, $12, $13)}' This won't tell you if/what restriction caused the disconnection, but you'll definitely know during which SMTP phase the disconnection occurred. -- Stan lost connection after CONNECT from unknown[119.158.85.98] lost connection after DATA (10150 bytes) from unknown[109.126.140.66] lost connection after RCPT from 59-126-95-178.pool.ukrtel.net[178.95.126.59] lost connection after CONNECT from unknown[41.174.21.83] lost connection after DATA (0 bytes) from unknown[41.141.110.166] lost connection after CONNECT from unknown[190.178.115.115] lost connection after CONNECT from unknown[200.75.242.87] lost connection after CONNECT from 5ac15e25.bb.sky.com[90.193.94.37] lost connection after DATA (0 bytes) from unknown[117.204.161.4] lost connection after CONNECT from unknown[120.162.51.31] lost connection after MAIL from unknown[201.221.239.203] lost connection after MAIL from unknown[201.221.239.203] lost connection after MAIL from unknown[201.221.239.203] lost connection after CONNECT from unknown[187.89.103.249] lost connection after DATA (0 bytes) from unknown[121.97.150.20] lost connection after RCPT from unknown[118.96.255.42] lost connection after RCPT from unknown[210.122.170.6] lost connection after RCPT from unknown[205.209.161.181] lost connection after DATA (0 bytes) from unknown[211.161.193.9] lost connection after RCPT from unknown[122.100.104.100] lost connection after DATA (49642 bytes) from unknown[117.206.234.89] lost connection after DATA (55333 bytes) from unknown[117.206.234.89] lost connection after DATA (0 bytes) from unknown[190.189.11.16] lost connection after DATA (0 bytes) from unknown[213.182.94.250] lost connection after DATA (0 bytes) from unknown[83.149.42.62] lost connection after CONNECT from unknown[123.26.72.52] lost connection after DATA (0 bytes) from unknown[119.30.38.43] lost connection after DATA (0 bytes) from unknown[91.205.168.11] lost connection after DATA (0 bytes) from unknown[91.205.168.11] lost connection after DATA (0 bytes) from unknown[91.205.168.11]