I am trying to setup Fetchmail / Procmail / Dovecot on my WRTSL54GS w/ a small RAID array attached. For the most part things are going well, but I need some help.
Note: I do want to do this. I know this is a tiny machine. I have my reasons. I live off-grid and a five watt server with an 8 watt raid array is very important to me. Every watt counts in my world.
So here is my issue:
I have several email accounts on an external hosting provider. I have created local accounts on my OpenWRT box. I can attach to them via Dovecot. Things work very nicely.
I can use Procmail to deliver messages to the Maildir filestructure.
I can use Fetchmail to get mail from my external providers.
What I can't do is get the fetchmail to run procmail as the appropriate local user on the OpenWRT and as a result, all mail collected via fetchmail gets delivered to root. I've tried wrapping things in a setuid script, but that doesn't work. So much for easy.
It seems my options are either:
(a) recompile busy box with proper user support such that I can 'su'.
(b) recompile fetchmail?
I think I want to pursue (b) as this seems much less more invasive than (a).
Is there something I'm missing? Any pointers or alternate suggestions would be very much appreciated.
Thanks.