Jeremie Le Hen wrote:
> On Fri, Jan 19, 2007 at 07:50:05AM -0500, Wietse Venema wrote:
>> Ralf Hildebrandt:
>>> No, you'd have to do it this way:
>>> generic@... generic@...
>>> and then add
>>> to $mydestination
>>> In alias_maps you then use:
>>> generic: "|/some/script"
>> Alternatively, you can use a transport map:
>> user@... script:
>> script unix - n n - - pipe
>> user=xxx flags=yyy argv=/some/where/script ...
>> See pipe(8) man page for options.
>> Which of the two is better depends on the features needed.
> Would you please provide documentation pointers where I can find the
> pros and cons of both methods ? Or if it doesn't exist, provide
> a short description of the differences ?
if you have a lot of scripts, you don't want to pollute master.cf. so
aliases are the way to go.
if you only have few scripts, then transport entries may be simpler.
Scripts started via aliases run as the owner of the alias file (unless
this is root, in which case they run as nobody). so if you have scripts
that need to run as special users, you need to split your alias file.
not a real issue, but one that is easily overlooked.