On 1/8/2026 11:31 AM, Viktor Dukhovni via Postfix-users wrote:
O_ Thu, Jan 08, 2026 at 10:41:28AM -0500, Dennis Putnam via Postfix-users wrote:

debugger_command =
          PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin;
                 (strace -p $
          process_id 2>&1 | logger -p mail.info) & sleep 5
Examples from DEBUG_README.html:

     /etc/postfix/main.cf:
         debugger_command =
              PATH=/bin:/usr/bin:/usr/local/bin;
              (truss -p $process_id 2>&1 | logger -p mail.info) & sleep 5

     /etc/postfix/main.cf:
         debugger_command =
              PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
              ddd $daemon_directory/$process_name $process_id & sleep 5
and my faviourite:

     /etc/postfix/main.cf:
         debugger_command =
             PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; HOME=/root;
             export HOME; screen -e^tt -dmS $process_name gdb
             $daemon_directory/$process_name $process_id & sleep 2

Notice that none of these have whitespace between "$" and "process_id".
The first one is closest to what you want.  Just replace "truss -p" with
"strace -p".

That said, why do you feel you need to debug the smtpd process?  That's
rarely needed unless you're experimenting with private patches that
aren't working...

Thanks. It was simply the new line after the $ that was the problem. I am now getting the output but it was not what I expected. I am having trouble with my ISP rejecting email generated by mailman3. I wanted to collect the session exchange between my postfix and my ISP relay. This is apparently not doing what was hoping. Is there some other way to debug this?

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to