Exim - piping mail sent to a particular address to a script
Hi, I've been trying to get this to work for hours and I think my head is going to explode.
My mail is retrieved by Fetchmail which then hands it over to Exim. One of the accounts Fetchmail connects to and retrieves needs to have all stuff that is sent to it passed to a php script. This account does not have a corresponding user on the local system (which has led to many "unknown user" errors and such).
I've created a router and a handler for Exim which (hopefully) would work if only the process would get as far as that. However, everything grinds to a halt before the ACL stuff is even completed.
First I tried adding stuff like:
accept local_parts = [specialname]
domains = +local_domains
to my ACL configuration but after fiddling around with many variants on that theme for a long time, I was getting nowhere, so I tried a different approach.
I added an alias to my /etc/aliases:
[specialname]: jez
But now I'm still getting the same old "unknown user" error.
I'm finding this all very confusing. Can anybody explain what I'm doing wrong? I'm sure it's simple but it beats me...
|