Results 1 to 6 of 6
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-20-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 5
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
- 03-21-2009 #2Linux Newbie
- Join Date
- Feb 2009
- Location
- Third ring of Pergatory
- Posts
- 199
You might check to see if users belonging to the group "mail" can run procmail as an mda
- 03-21-2009 #3Just Joined!
- Join Date
- Mar 2009
- Posts
- 5
Thanks for your reply.
Do you mean that, if they cannot, fetchmail would use root instead of failing?
- 03-21-2009 #4Linux Newbie
- Join Date
- Feb 2009
- Location
- Third ring of Pergatory
- Posts
- 199
No I was looking at this
That's a fail, that's not the fetchmail servers default behavior when properly configured. It may be the source of your problem, it may be totally unrelated, The only way to find out is to fix it.Everything works, but message files are created as fetchmail:nogroup
- 03-22-2009 #5Just Joined!
- Join Date
- Mar 2009
- Posts
- 5
oooooh I finally solved using maildrop
)
10 days to get a working fetchmail-maildrop-dovecot system with virtual users on centralized maildirs.... argh
- 03-22-2009 #6Linux Newbie
- Join Date
- Feb 2009
- Location
- Third ring of Pergatory
- Posts
- 199
but it will work forever now....
That's why I love this stuff. It didn't used to come zipping off the CD into snazzy desktops, you used to have to build all that component by component but once you make it work...it just keeps on working...


Reply With Quote

