On Fri, May 03, 2019 at 10:13:17PM +0200, Adrien CLERC wrote:

> I'm struggling with external command delivery in a simple /etc/aliases file:
> 
> scan:|/usr/local/bin/deliver_scan.py
> 
> The email bounces with <|/usr/local/bin/[email protected]>
> (expanded from <[email protected]>): unknown user:
> "|/usr/local/bin/deliver_scan.py"
> 
> I enabled verbosity in trivial-rewrite and cleanup, and it seems that
> cleanup does the lookup in the /etc/aliases file, and after that, it
> appends $my_origin.

Your mistake may be configuring /etc/aliases as a virtual(5) table.
The aliases(5) file is only compatible with local(8) delivery, and
must not be used as a virtual(5) data source.  For more help:

    http://www.postfix.org/DEBUG_README.html#mail

-- 
        Viktor.

Reply via email to