OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: debug smtp
From: Zhong Chen (chenfastpointcom.com)
Date: Wed Oct 11 2000 - 00:57:22 CDT


I tried to debug the smtp process. In master.cf file, I added -D option:
smtpe unix - - n - 1 smtp -v -D
In main.cf, added:
process_name = smtp
debugger_command = /usr/local/bin/gdb $program_directory/$process_name $process_id & sleep 5
After sending a mail, following line appears in the maillog file: (the mail sent successfully)
Oct 10 22:34:44 smr smx/smtp[32083]: running: /usr/local/bin/gdb /usr/libexec/smx/smtp 32083 & sleep 5

But I didn't see any gdb has been invoke.
 
I also tried to use gdb to attach the running "smtp", by using: "attach <pid>" command, but no symbol table is loaded. (the program is compiled with gcc on linux with -g option)

Please help me. Thanks.

Z. Chen