Why do you want to keep with this perl script? I think it's quite probably possible to replace it with mechanisms native to qmail, which would be much faster and more efficient.
We have 12 servers that need upgrading, each user has their own .redirect file or .block file (The perl script also reads this for blocking mail for spam)
I just want to keep the script and drop it onto a qmail install
I don't think it will be too hard it just needs a couple of tweaks. I thought it was the /var/qmail/rc file and the .qmail-default files that needed editing but just not sure what way to go
The rc file now has :-
#!/bin/sh
# Using syslod for logging # Using /usr/local/sbin/mailer to deliver local messages by default
$exec env - PATH="/var/qmail/bin:$PATH" \ qmail-start '|preline /usr/local/sbin/mailer $SENDER $USER $HOST' splogger qmail
and the .redirect file is read and will forward mail but when it comes to local delivery i loose it somewhere.
The perl script reads a config:- testserver.uk myhome
and anything @testserver.co.uk goes to the user myhome. I know its working as it reads the .redirect file and does do remote redirecting.
Its the local delivery thats failing (Its calling spooler and running from there)
I tried piping to /bin/mail but still no good
Im missing something just cant work out what
Darren