Bryce Nesbitt a écrit : > Noel Jones wrote: >> 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 > I was aiming for something that was "no mistakes" proof for other system > administrators. > > Meaning: > 1) /etc/aliases would be the file to edit (not some other file). > 2) "newaliases" would still be the command to run. >
just tell postfix to use another place: alias_maps = /etc/postfix/autogenerated/aliases alias_database = ${alias_maps} then edit /etc/aliases as you want, and use your shell to generate /etc/postfix/autogenerated/aliases. as Noel said, put this in a Makefile... > The hack I came up with was /etc/aliases has comments. /etc/newaliases > is my script. Strips comments to a temporary file. It then calls > "sendmail -I" to process the aliases. Then it deletes the temp file. > > Not so elegant. > Would anyone else appreciate end of line comments, as an extension to > /etc/aliases and *.pcre? What character should introduce such comments? why fight against the system. isn't this ok: # joe blah blah joe jim (that is: comments on their own lines).