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...

-- 
    Viktor.  🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to