Re: External command delivery in alias file

2019-05-04 Thread Adrien CLERC
Viktor Dukhovni : > > 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 You are right, but I'm

Re: External command delivery in alias file

2019-05-04 Thread Wietse Venema
Adrien CLERC: > Hi, > > I'm struggling with external command delivery in a simple /etc/aliases file: > > scan:|/usr/local/bin/deliver_scan.py Use alias_maps (and quote the command) not virtual_alias_maps, or see http://.postfix.org/FILTER_REAME.html for running a command over mail content.

Re: External command delivery in alias file

2019-05-03 Thread Viktor Dukhovni
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/deliver_scan...@antipoul.fr> > (expanded from ): unknown user: > "|/us

Re: External command delivery in alias file

2019-05-03 Thread Bill Cole
On 3 May 2019, at 16:13, Adrien CLERC wrote: Hi, I'm struggling with external command delivery in a simple /etc/aliases file: scan:|/usr/local/bin/deliver_scan.py There needs to be whitespace between the colon and the pipe: scan:|/usr/local/bin/deliver_scan.py -- Bill Cole b...@scc

External command delivery in alias file

2019-05-03 Thread Adrien CLERC
Hi, 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/deliver_scan...@antipoul.fr> (expanded from ): unknown user: "|/usr/local/bin/deliver_scan.py" I enabled verbosity in trivial-rewrite and