fetchmail-procmail uid and gid
I tried to setup postfix to do this and failed, so... let's try with procmail.
I want fetchmail to use procmail as mda and deliver mail to a maildir folder in /var/spool/vmail.
Everything works, but message files are created as fetchmail:nogroup or, if I run fetchmail as root, as root:root.
man fetchmail says... "If fetchmail is running as root, it sets its user id to that of the target user while delivering mail through an MDA.".
So my /etc/fetchmailrc contains
poll pop.server.com proto pop3
user "myuser@server.com" password "pass"
is vmail here
mda "procmail -a myuser /etc/procmailrc";
procmailrc says procmail to send always mail to /var/spool/vmail/$1
I get every single file... but they are owned by fetchmail or root, not by vmail (dovecot user)
What can I do?
Thanks