HEX
Server: Apache/2.4.29 (Ubuntu)
System: Linux bareserver 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User: root (0)
PHP: 7.2.24-0ubuntu0.18.04.17
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //usr/share/webmin/postfix/help/opt_mailbox_command.html
<header>External command to use instead of mailbox delivery</header>

<center><tt>mailbox_command</tt></center>
<hr>

This parameter specifies the optional external command to use instead of mailbox
delivery. The command is run as the recipient with proper <tt>HOME</tt>,
<tt>SHELL</tt> and <tt>LOGNAME</tt> environment settings. Exception: delivery
for <tt>root</tt> is done as <tt>$default_user</tt>.

<p>

Other environment variables of interest: <tt>USER</tt> (recipient username),
<tt>EXTENSION</tt> (address extension), <tt>DOMAIN</tt> (domain part of address),
and <tt>LOCAL</tt> (the address localpart).

<p>

Unlike other Postfix configuration parameters, this
parameter is not subjected to parameter substitutions. This is to
make it easier to specify shell syntax (see example below).

<p>

Avoid shell meta characters because they will force Postfix to run
an expensive shell process. <tt>Procmail</tt> alone is expensive enough.

<p>

IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.

<p>

Examples:
<ul>
<li><tt>/some/where/procmail</tt> 
<li><tt>/some/where/procmail -a "$EXTENSION"</tt>
</ul>

<hr>