Find the answer to your Linux question:
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.
  1. #1
    Just 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

  2. #2
    Linux 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

  3. #3
    Just 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?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Feb 2009
    Location
    Third ring of Pergatory
    Posts
    199
    Quote Originally Posted by ctrl View Post
    Thanks for your reply.
    Do you mean that, if they cannot, fetchmail would use root instead of failing?
    No I was looking at this
    Everything works, but message files are created as fetchmail:nogroup
    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.

  6. #5
    Just 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

  7. #6
    Linux 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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •