Bryce Nesbitt wrote:
Dear Postfix Experts,
Is there a way to get a pipe going to newaliases / sendmail -I / postalias?
I felt a strong need to have end of line comment characters in
/etc/aliases ;-). So my first shot at that was:
sed 's/#.*$//' aliases | newalises
Which failed spectacularly. And yes, I know that # is legal in email
addresses, I accept the tradoff to get nice neat comments,
grepable by alias:
# The fumble section of of our aliases
#
foo: fum # requested by fumble on 20090101
fiddle: fie,fie,foo # per ticket #AZ-12313
living: "danger#...@ly.com" # Yeah, right
You can't pipe to newaliases.
You can use a proto file with comments and some script to
create the input file that newaliases requires. This seems a
natural for a Makefile.
-- Noel Jones