Martijn Brouwer writes:

Sam Varshavchik wrote:

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.

Thanks for your suggestion. I changed maildrop permissions to: -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.


Attachment: pgpeXvcD26Vgn.pgp
Description: PGP signature

Reply via email to