Fred Moyer wrote:
harpua qpsmtpd-0.31.1 # sh qpsmtpd_single.sh
tcpserver: status: 0/10
helo foo.com

<no response from server>

Um, no, you need to start a SMTP conversation from another window; once you connect, tcpserver will start up a qpsmtpd session under the debugger. If you are just interested in debugging a single message, Peter's construct is better, but you still need some other process to generate the other end of the SMTP conversation.

I find that using swaks[1] to generate the test e-mail while I'm debugging works very well. It will probably time out while you are poking around, but if you break the code at the point where you want to investigate (with the $DB::single line), that doesn't matter.

John

1) http://jetmore.org/john/code/#swaks

--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

Reply via email to