i have tried two options to pipe t a perl script
and i am looking for a third as the two I thought wil not work
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:
in 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
and i am looking for a third as the two I thought wil not work
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:
in 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