Discussion:
Aliases and command pipes
(too old to reply)
Richard Secor
2006-04-25 16:22:18 UTC
Permalink
Everything I've read leads me to believe that postfix can handle
piping of mail to a command using aliases.

However, when I set it up instead of just trying to pipe to the
command I get an error message back.

For example if I have:

test: /bin/test.pl


I see that it tries to send mail to:

|/bin/test.pl@<mailserver hostname>


Is there a config option or something I'm missing?

Thanks,
-Rich
***@seqlogic.com
Noel Jones
2006-04-25 16:40:23 UTC
Permalink
Post by Richard Secor
Everything I've read leads me to believe that postfix can
handle
piping of mail to a command using aliases.
However, when I set it up instead of just trying to pipe
to the
command I get an error message back.
test: /bin/test.pl
The aliases man page suggests the syntax to pipe to a
command would look like
test: |/path/to/command

http://www.postfix.org/aliases.5.html
--
Noel Jones
Richard Secor
2006-04-25 18:02:47 UTC
Permalink
That's what I meant... and I already read that page.
And I have
allow_mail_to_commands = alias,foward,include
in my main.cf as well.

Thanks,
-Rich
Post by Richard Secor
Everything I've read leads me to believe that postfix can handle
piping of mail to a command using aliases.
However, when I set it up instead of just trying to pipe to the
command I get an error message back.
test: /bin/test.pl
The aliases man page suggests the syntax to pipe to a command would
look like
test: |/path/to/command
http://www.postfix.org/aliases.5.html
--
Noel Jones
Magnus Bäck
2006-04-25 20:12:51 UTC
Permalink
On Tuesday, April 25, 2006 at 20:02 CEST,
Post by Richard Secor
The aliases man page suggests the syntax to pipe to a command would
look like
test: |/path/to/command
http://www.postfix.org/aliases.5.html
That's what I meant... and I already read that page.
And I have
allow_mail_to_commands = alias,foward,include
in my main.cf as well.
Stop top-posting and show us your configuration and some logs instead.
--
Magnus Bäck
***@dsek.lth.se
Michael Monnerie
2006-04-26 10:27:53 UTC
Permalink
Wietse Venema
2006-04-26 10:57:41 UTC
Permalink
Post by Richard Secor
That's what I meant... and I already read that page.
And I have
allow_mail_to_commands = alias,foward,include
in my main.cf as well.
I have postconf|grep allow_mail_to
allow_mail_to_commands = alias, forward
allow_mail_to_files = alias, forward
Postfix does not support commands in VIRTUAL aliases.

It never did, and the documentation never promised that.

In fact, the VIRTUAL.html document describes all this
and how to implement commands in VIRTUAL alias domains.

Wietse
Michael Monnerie
2006-04-26 12:01:26 UTC
Permalink
Noel Jones
2006-04-26 02:03:12 UTC
Permalink
Post by Richard Secor
That's what I meant... and I already read that page.
And I have
allow_mail_to_commands = alias,foward,include
in my main.cf as well.
[please don't top post]

Based on information provided so far, the most likely
explanation is incorrect syntax in your aliases file. If
you think your syntax is correct, please show us exactly
what is in your alias file, logging, and "postconf -n".
--
Noel Jones
Continue reading on narkive:
Loading...