I recently installed Exim 4.10 and while most everything is working
properly, I have the following problem:
On any users who have a .forward file containing a pipe (for example:
|/usr/bin/procmail ) an error is reported by the mail server after MAIL
FROM/RCPT TO addressing is complete. The output from "/usr/exim/bin/exim
-bd -d" contains the following:
expanded: /home/sarag/.forward
LOG: MAIN PANIC DIE
unable to set gid=1000 or uid=1000 (euid=61): userforward router (recipient is sarag@???)
SMTP>> 421 Unexpected failure, please try later
What this says to me is that the process can't setuid() to the recipient
because it's running as user "exim". The
/usr/src/exim-4.10/Local/Makefile says to use an unpriviledged user
though.
Attached are portions of my Local/Makefile and my /usr/exim/configure
Local/Makefile:
---------------
EXIM_USER = exim
ROUTER_ACCEPT=yes
ROUTER_DNSLOOKUP=yes
ROUTER_IPLITERAL=yes
ROUTER_MANUALROUTE=yes
ROUTER_QUERYPROGRAM=yes
ROUTER_REDIRECT=yes
TRANSPORT_APPENDFILE=yes
TRANSPORT_AUTOREPLY=yes
TRANSPORT_PIPE=yes
TRANSPORT_SMTP=yes
LOOKUP_DBM=yes
LOOKUP_LSEARCH=yes
LOOKUP_CDB=yes
LOOKUP_DSEARCH=yes
LOOKUP_MYSQL=yes
configure:
----------
never_users=root
begin routers
userforward:
driver = redirect
check_local_user
file = $home/.forward
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
address_pipe:
driver = pipe
return_output