I'm trying to capture the SMTP session using the -D option. However, I can't get the right syntax for the debugger_command in main.cf. I get the error:

2026-01-08T10:27:00.414394-05:00 dap002 configure-instance.sh[127822]: postconf: fatal: macro processing error 2026-01-08T10:27:01.430278-05:00 dap002 configure-instance.sh[127827]: postconf: warning: empty macro name: "PATH=/bin:/ usr/bin:/usr/local/bin:/usr/X11R6/bin;??(strace -p $? process_id 2>&1 | logger -p mail.info) & sleep 5" 2026-01-08T10:27:01.430422-05:00 dap002 configure-instance.sh[127827]: postconf: warning: empty macro name: "PATH=/bin:/ usr/bin:/usr/local/bin:/usr/X11R6/bin;??(strace -p $? process_id 2>&1 | logger -p mail.info) & sleep 5" 2026-01-08T10:27:01.430463-05:00 dap002 configure-instance.sh[127827]: postconf: fatal: macro processing error 2026-01-08T10:27:02.433678-05:00 dap002 systemd[1]: [email protected]: Control process exited, code=exited, status=1/FAILURE 2026-01-08T10:27:02.437764-05:00 dap002 systemd[1]: [email protected]: Failed with result 'exit-code'.

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

My OS is Ubuntu 24 if that matters. I gleaned this from https://www.linuxtopia.org/online_books/mail_systems/postfix_documentation/DEBUG_README_008.html. Can someone help me correct the syntax? TIA

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