On Sep 11, 2004, at 12:33 AM, Sam Varshavchik wrote:
Martijn Brouwer writes:
Sam Varshavchik wrote:Thanks for your suggestion. I changed maildrop permissions to:Michael Einem writes:
Is there a way to have maildrop run from fetchmail by another user?
mda "/usr/bin/env HOME=/virtual/users/home/ /usr/bin/maildrop -d username"
-d is the switch to tell maildrop as which user to deliver. The problem is that in delivery mode, maildrop for security reasons does not load all the environment variables so you have to set them yourself with the env command.
If you make maildrop suid root this will work, and you don't need to set any environment variables.
-rwxr-sr-x 1 root mail 149032 Aug 21 17:31 /usr/bin/maildrop
And when I run fetchmail, as user fetchmail, I get this message:
#***********************.*******/usr/bin/maildrop: You are not a trusted user.
fetchmail: SIGPIPE thrown from an MDA or a stream socket error
fetchmail: socket error while fetching from utep.el.utwente.nl
So this does not seem the perfect remedy.
It is, if you read the description of the --enable-trusted-users option in maildrop's INSTALL file.
or run fetchmail as root
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
