> On Mar 13, 2017, at 7:56 PM, Samuel Williams <space.ship.travel...@gmail.com> > wrote: > > Just wondering, looking at the source code, it should be possible to > create a merge mode for postalias. Would you accept a PR for this? So > the use case would be something like > > cat /etc/postfix/aliases /etc/postfix/aliases.d/* | postalias -Mi aliases > > And it would merge together records if there were duplicates.
Sorry, that's not sensible behaviour for postmap/postalias. You can use a Perl or Python script to generate a combined input stream, much more easily than piling on C-code in postmap/postalias to do the same thing. -- Viktor.