All pastes #102165 Raw Edit

bliss

public text v1 · immutable
#102165 ·published 2006-07-27 11:30 UTC
rendered paste body
here are two ways i thought of piping this perl script

1st option

--------------------


what i have done is set up postfix to accept mail to 'foo@rep.robin.com'
and deliver them via pipe to the command "repserver -d foo"

its the "deliver them via pipe to the command repserver -d foo"
than i do not know how to set up.?

but my thinking is:

in /etc/aliases someusername: | repserver.pl(path to it)
run newaliases

2nd option
----------------------------------------
echo '"| /path/to/repserver.pl"' >>~/.forward


Why both options will not work:


n the .forward. I must remember the repserver script is able to add new users when they complete the registration process, so I would have to modify the script in order to run one of these two commands after a successful registration. This is messy. I'm quite sure there is a cleaner way to ask postfix to pipe every mails received for ${foo}@${nymdomain} to "repserver.pl -d $foo".?


two commands means i cannot use .forward or /etc/aliases