on Thu, Feb 07, 2002 at 10:03:25PM -0000, D wrote:
We currently have sendmail configured to parse local mail through a perl script. This takes 3 arguments From, User, Host
user being the alias, host being the domain.
It then checks a couple of files for the domain, and works out what local user should have the mail.
If then goes to that users home directory and looks for a file called .redirect
This either redirects it to another local user or to a program for processing or another email address
This can be done with .qmail files (or .forward if you get the dot-forward addon.)
You can invoke "spooler" by letting all mail fall back onto the qmail "alias" user. It's home is usually something like /var/qmail/alias. In /var/qmail/alias, if you create a file called .qmail there with something like: | preline perl /path/to/myscript.pl
all mail should be piped into the script.
That didn't seem to work correctly I already tried this.
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
Darren